~xibo-maintainers/xibo/tempel

« back to all changes in this revision

Viewing changes to views/daypart-form-add.twig

  • Committer: Dan Garner
  • Date: 2016-09-05 09:24:54 UTC
  • mto: This revision was merged to the branch mainline in revision 532.
  • Revision ID: git-v1:77103204f31838a57f591ebdebf5e79b2375a66e
Working daypart add/edit/delete forms.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
{% endblock %}
28
28
 
29
29
{% block formButtons %}
30
 
    {% trans "Help" %}, XiboHelpRender("{{ help }}")
31
30
    {% trans "Cancel" %}, XiboDialogClose()
32
 
    {% trans "Save" %}, $("#dayPartEditForm").submit()
 
31
    {% trans "Save" %}, $("#dayPartAddForm").submit()
33
32
{% endblock %}
34
33
 
35
34
{% block extra %}{{ extra|json_encode|raw }}{% endblock %}
44
43
                <li><a href="#description" role="tab" data-toggle="tab"><span>{% trans "Description" %}</span></a></li>
45
44
                <li><a href="#exceptions" role="tab" data-toggle="tab"><span>{% trans "Exceptions" %}</span></a></li>
46
45
            </ul>
47
 
            <form id="dayPartEditForm" class="XiboForm form-horizontal" method="post" action="{{ urlFor("daypart.add") }}">
 
46
            <form id="dayPartAddForm" class="XiboForm form-horizontal" method="post" action="{{ urlFor("daypart.add") }}">
48
47
                <div class="tab-content">
49
48
                    <div class="tab-pane active" id="general">
50
49
                        {% set title %}{% trans "Name" %}{% endset %}
51
50
                        {% set helpText %}{% trans "The Name for this Daypart" %}{% endset %}
52
 
                        {{ forms.input("dayPart", title, "", helpText, "", "required") }}
 
51
                        {{ forms.input("name", title, "", helpText, "", "required") }}
53
52
 
54
53
                        {% set title %}{% trans "Retired" %}{% endset %}
55
54
                        {% set helpText %}{% trans "Retire? It will no longer be visible when scheduling" %}{% endset %}