-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
90 changed files
with
3,615 additions
and
2,393 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,26 @@ | ||
<html xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:tal="http://xml.zope.org/namespaces/tal" | ||
tal:omit-tag=""> | ||
<span class="option" | ||
tal:repeat="item view/items"> | ||
<label for="" | ||
tal:attributes="for item/id"> | ||
<input tal:replace="structure python:view.renderForValue(item['value'], item['index'])" | ||
/> | ||
<span class="label" tal:content="item/label">Label</span> | ||
</label> | ||
</span> | ||
<input name="field-empty-marker" type="hidden" value="1" | ||
tal:attributes="name string:${view/name}-empty-marker" /> | ||
tal:omit-tag="" | ||
> | ||
<span class="option" | ||
tal:repeat="item view/items" | ||
> | ||
<label for="" | ||
tal:attributes=" | ||
for item/id; | ||
" | ||
> | ||
<input tal:replace="structure python:view.renderForValue(item['value'], item['index'])" /> | ||
<span class="label" | ||
tal:content="item/label" | ||
>Label</span> | ||
</label> | ||
</span> | ||
<input name="field-empty-marker" | ||
type="hidden" | ||
value="1" | ||
tal:attributes=" | ||
name string:${view/name}-empty-marker; | ||
" | ||
/> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 14 additions & 10 deletions
24
src/redturtle/prenotazioni/browser/stats/booking_stats.pt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,22 @@ | ||
<html xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:metal="http://xml.zope.org/namespaces/metal" | ||
xmlns:tal="http://xml.zope.org/namespaces/tal" | ||
xmlns:i18n="http://xml.zope.org/namespaces/i18n" | ||
metal:use-macro="context/main_template/macros/master" | ||
i18n:domain="redturtle.prenotazioni"> | ||
<head> | ||
xmlns:i18n="http://xml.zope.org/namespaces/i18n" | ||
xmlns:metal="http://xml.zope.org/namespaces/metal" | ||
xmlns:tal="http://xml.zope.org/namespaces/tal" | ||
metal:use-macro="context/main_template/macros/master" | ||
i18n:domain="redturtle.prenotazioni" | ||
> | ||
<head> | ||
<metal:block fill-slot="top_slot" | ||
tal:define="disable_column_one python:request.set('disable_plone.leftcolumn',1); | ||
disable_column_two python:request.set('disable_plone.rightcolumn',1);" /> | ||
</head> | ||
tal:define=" | ||
disable_column_one python:request.set('disable_plone.leftcolumn',1); | ||
disable_column_two python:request.set('disable_plone.rightcolumn',1); | ||
" | ||
/> | ||
</head> | ||
|
||
<body> | ||
<metal:main fill-slot="main"> | ||
<!-- --> | ||
<!-- --> | ||
</metal:main> | ||
</body> | ||
</html> |
137 changes: 81 additions & 56 deletions
137
src/redturtle/prenotazioni/browser/templates/booking_type_radio_widget.pt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,86 @@ | ||
<div | ||
metal:define-macro="widget-wrapper" | ||
i18n:domain="plone" | ||
tal:define="widget nocall:context; | ||
hidden python:widget.mode == 'hidden'; | ||
error widget/error; | ||
error_class python:error and ' error' or ''; | ||
empty_values python: (None, '', [], ('', '', '', '00', '00', ''), ('', '', '')); | ||
empty_class python: (widget.value in empty_values) and ' empty' or ''; | ||
wrapper_css_class widget/wrapper_css_class|nothing; | ||
fieldname_class string:kssattr-fieldname-${widget/name};" | ||
data-pat-inlinevalidation='{"type":"z3c.form"}' | ||
tal:attributes="class string:field pat-inlinevalidation ${fieldname_class}${error_class}${empty_class} ${wrapper_css_class}; | ||
data-fieldname widget/name; | ||
id string:formfield-${widget/id};"> | ||
<label for="" class="horizontal" | ||
tal:attributes="for widget/id; | ||
aria-label python: widget.get_radio_message(widget.label)" | ||
tal:condition="python: not hidden and widget.label" | ||
tabindex="0" | ||
aria-label="Selezionare un elemento dalla check list seguente"> | ||
<span i18n:translate="" tal:replace="widget/label">label</span> | ||
<span class="required horizontal" title="Required" | ||
tal:condition="python:widget.required and widget.mode == 'input'" | ||
i18n:attributes="title title_required;"> </span> | ||
<div metal:define-macro="widget-wrapper" | ||
data-pat-inlinevalidation='{"type":"z3c.form"}' | ||
tal:define=" | ||
widget nocall:context; | ||
hidden python:widget.mode == 'hidden'; | ||
error widget/error; | ||
error_class python:error and ' error' or ''; | ||
empty_values python: (None, '', [], ('', '', '', '00', '00', ''), ('', '', '')); | ||
empty_class python: (widget.value in empty_values) and ' empty' or ''; | ||
wrapper_css_class widget/wrapper_css_class|nothing; | ||
fieldname_class string:kssattr-fieldname-${widget/name}; | ||
" | ||
tal:attributes=" | ||
class string:field pat-inlinevalidation ${fieldname_class}${error_class}${empty_class} ${wrapper_css_class}; | ||
data-fieldname widget/name; | ||
id string:formfield-${widget/id}; | ||
" | ||
i18n:domain="plone" | ||
> | ||
<label class="horizontal" | ||
aria-label="Selezionare un elemento dalla check list seguente" | ||
for="" | ||
tabindex="0" | ||
tal:condition="python: not hidden and widget.label" | ||
tal:attributes=" | ||
for widget/id; | ||
aria-label python: widget.get_radio_message(widget.label); | ||
" | ||
> | ||
<span tal:replace="widget/label" | ||
i18n:translate="" | ||
>label</span> | ||
<span class="required horizontal" | ||
title="Required" | ||
tal:condition="python:widget.required and widget.mode == 'input'" | ||
i18n:attributes="title title_required;" | ||
> </span> | ||
|
||
<span class="formHelp" | ||
tal:define="description python: getattr(widget, 'description', widget.field.description)" | ||
i18n:translate="" | ||
tal:content="structure description" | ||
tal:condition="python:description and not hidden" | ||
>field description | ||
</span> | ||
</label> | ||
<div class="fieldErrorBox" | ||
tal:content="structure error/render|nothing"> | ||
<span class="formHelp" | ||
tal:define=" | ||
description python: getattr(widget, 'description', widget.field.description); | ||
" | ||
tal:condition="python:description and not hidden" | ||
tal:content="structure description" | ||
i18n:translate="" | ||
>field description | ||
</span> | ||
</label> | ||
<div class="fieldErrorBox" | ||
tal:content="structure error/render|nothing" | ||
> | ||
Error | ||
</div> | ||
<input type="text" tal:replace="structure widget/render" | ||
metal:define-slot="widget" /> | ||
<div class="unbookable" | ||
tal:define="unbookable_items nocall:view/unbookable_items" | ||
tal:condition="unbookable_items" | ||
i18n:domain="redturtle.prenotazioni"> | ||
<p class="formHelp" i18n:translate="booking_type_widget_warn_unavailable"> | ||
</div> | ||
<input metal:define-slot="widget" | ||
type="text" | ||
tal:replace="structure widget/render" | ||
/> | ||
<div class="unbookable" | ||
tal:define=" | ||
unbookable_items nocall:view/unbookable_items; | ||
" | ||
tal:condition="unbookable_items" | ||
i18n:domain="redturtle.prenotazioni" | ||
> | ||
<p class="formHelp" | ||
i18n:translate="booking_type_widget_warn_unavailable" | ||
> | ||
The following tipologies will not fit the time you selected: | ||
</p> | ||
<ul> | ||
<li tal:repeat="item unbookable_items"> | ||
<tal:li replace="item/title">Vocabulary title</tal:li> | ||
</li> | ||
</ul> | ||
<div class="visualClear"></div> | ||
<p class="formHelp"> | ||
<a tal:attributes="href view/prenotazione_add/back_to_booking_url" | ||
i18n:translate="booking_type_widget_suggest_reselect"> | ||
</p> | ||
<ul> | ||
<li tal:repeat="item unbookable_items"> | ||
<tal:li replace="item/title">Vocabulary title</tal:li> | ||
</li> | ||
</ul> | ||
<div class="visualClear"></div> | ||
<p class="formHelp"> | ||
<a tal:attributes=" | ||
href view/prenotazione_add/back_to_booking_url; | ||
" | ||
i18n:translate="booking_type_widget_suggest_reselect" | ||
> | ||
You may want to select another time slot to book one of these. | ||
</a> | ||
</p> | ||
</div> | ||
</a> | ||
</p> | ||
</div> | ||
</div> |
87 changes: 51 additions & 36 deletions
87
src/redturtle/prenotazioni/browser/templates/custom_dgf_input.pt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,55 @@ | ||
<html xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:tal="http://xml.zope.org/namespaces/tal" | ||
tal:omit-tag=""> | ||
tal:omit-tag="" | ||
> | ||
|
||
<label tal:content="view/value" /> | ||
<input id="" name="" class="" title="" lang="" disabled="" | ||
readonly="" alt="" tabindex="" accesskey="" size="" maxlength="" | ||
style="" value="" type="hidden" | ||
tal:attributes="id view/id; | ||
name view/name; | ||
class view/klass; | ||
style view/style; | ||
title view/title; | ||
lang view/lang; | ||
onclick view/onclick; | ||
ondblclick view/ondblclick; | ||
onmousedown view/onmousedown; | ||
onmouseup view/onmouseup; | ||
onmouseover view/onmouseover; | ||
onmousemove view/onmousemove; | ||
onmouseout view/onmouseout; | ||
onkeypress view/onkeypress; | ||
onkeydown view/onkeydown; | ||
onkeyup view/onkeyup; | ||
value view/value; | ||
disabled view/disabled; | ||
tabindex view/tabindex; | ||
onfocus view/onfocus; | ||
onblur view/onblur; | ||
onchange view/onchange; | ||
readonly view/readonly; | ||
alt view/alt; | ||
accesskey view/accesskey; | ||
onselect view/onselect; | ||
size view/size; | ||
maxlength view/maxlength; | ||
placeholder view/placeholder; | ||
autocapitalize view/autocapitalize;" /> | ||
<label tal:content="view/value"></label> | ||
<input class="" | ||
id="" | ||
accesskey="" | ||
alt="" | ||
disabled | ||
lang="" | ||
maxlength="" | ||
name="" | ||
readonly | ||
size="" | ||
style="" | ||
tabindex="" | ||
title="" | ||
type="hidden" | ||
value="" | ||
tal:attributes=" | ||
id view/id; | ||
name view/name; | ||
class view/klass; | ||
style view/style; | ||
title view/title; | ||
lang view/lang; | ||
onclick view/onclick; | ||
ondblclick view/ondblclick; | ||
onmousedown view/onmousedown; | ||
onmouseup view/onmouseup; | ||
onmouseover view/onmouseover; | ||
onmousemove view/onmousemove; | ||
onmouseout view/onmouseout; | ||
onkeypress view/onkeypress; | ||
onkeydown view/onkeydown; | ||
onkeyup view/onkeyup; | ||
value view/value; | ||
disabled view/disabled; | ||
tabindex view/tabindex; | ||
onfocus view/onfocus; | ||
onblur view/onblur; | ||
onchange view/onchange; | ||
readonly view/readonly; | ||
alt view/alt; | ||
accesskey view/accesskey; | ||
onselect view/onselect; | ||
size view/size; | ||
maxlength view/maxlength; | ||
placeholder view/placeholder; | ||
autocapitalize view/autocapitalize; | ||
" | ||
/> | ||
</html> | ||
|
Oops, something went wrong.