Update ticket_cc_add template for bootstrap4

This commit is contained in:
Garret Wassermann 2019-02-15 19:37:46 -05:00
parent d9ccaacee5
commit 64414141f7

View File

@ -18,59 +18,55 @@
{% block helpdesk_body %} {% block helpdesk_body %}
<h2>{% trans 'Add Ticket CC' %}</h2> <h2>{% trans 'Add Ticket CC' %}</h2>
<div class="row"> <div class="card mb-3">
<div class="col-lg-12"> <div class="card-header">
<div class="panel panel-primary"> <i class="fas fa-hand-pointer"></i>
<div class="panel-heading"> {% trans 'To automatically send an email to a user or e-mail address when this ticket is updated, select the user or enter an e-mail address below.' %}
{% trans 'To automatically send an email to a user or e-mail address when this ticket is updated, select the user or enter an e-mail address below.' %} </div>
</div> <div class="card-body">
<!-- /.panel-heading --> <!-- Nav tabs -->
<div class="panel-body"> <ul class="nav nav-tabs">
<!-- Nav tabs --> <li class="active"><a href="#EmailCC" data-toggle="tab">{% trans 'Email' %}</a>
<ul class="nav nav-tabs"> </li>
<li class="active"><a href="#EmailCC" data-toggle="tab">{% trans 'Email' %}</a> <li><a href="#UserCC" data-toggle="tab">{% trans 'User' %}</a>
</li> </li>
<li><a href="#UserCC" data-toggle="tab">{% trans 'User' %}</a> </ul>
</li>
</ul>
<!-- Tab panes --> <!-- Tab panes -->
<div class="tab-content"> <div class="tab-content">
<div class="tab-pane fade in active" id="EmailCC"> <div class="tab-pane fade in active" id="EmailCC">
<h4>{% trans 'Add Email' %}</h4> <h4>{% trans 'Add Email' %}</h4>
<form method='post' action='./'> <form method='post' action='./'>
<fieldset> <fieldset>
<dl>{% for field in form_email %} <dl>{% for field in form_email %}
<dt><label for='id_{{ field.name }}'>{{ field.label }}</label></dt> <dt><label for='id_{{ field.name }}'>{{ field.label }}</label></dt>
<dd>{{ field }}</dd> <dd>{{ field }}</dd>
{% if field.errors %}<dd class='error'>{{ field.errors }}</dd>{% endif %} {% if field.errors %}<dd class='error'>{{ field.errors }}</dd>{% endif %}
{% if field.help_text %}<dd class='form_help_text'>{{ field.help_text }}</dd>{% endif %} {% if field.help_text %}<dd class='form_help_text'>{{ field.help_text }}</dd>{% endif %}
{% endfor %}</dl> {% endfor %}</dl>
</fieldset> </fieldset>
<button class="btn btn-primary" type='submit'>{% trans "Save Ticket CC" %}</button> <button class="btn btn-primary" type='submit'>{% trans "Save Ticket CC" %}</button>
{% csrf_token %}</form> {% csrf_token %}</form>
</div>
<div class="tab-pane fade" id="UserCC">
<h4>{% trans 'Add User' %}</h4>
<form method='post' action='./'>
<fieldset>
<dl>{% for field in form_user %}
<dt><label for='id_{{ field.name }}'>{{ field.label }}</label></dt>
<dd>{{ field }}</dd>
{% if field.errors %}<dd class='error'>{{ field.errors }}</dd>{% endif %}
{% if field.help_text %}<dd class='form_help_text'>{{ field.help_text }}</dd>{% endif %}
{% endfor %}</dl>
</fieldset>
<button class="btn btn-primary" type='submit'>{% trans "Save Ticket CC" %}</button>
{% csrf_token %}</form>
</div>
</div>
</div>
<!-- /.panel-body -->
</div>
<!-- /.panel -->
</div>
</div> </div>
<!-- /.row --> <div class="tab-pane fade" id="UserCC">
<h4>{% trans 'Add User' %}</h4>
<form method='post' action='./'>
<fieldset>
<dl>{% for field in form_user %}
<dt><label for='id_{{ field.name }}'>{{ field.label }}</label></dt>
<dd>{{ field }}</dd>
{% if field.errors %}<dd class='error'>{{ field.errors }}</dd>{% endif %}
{% if field.help_text %}<dd class='form_help_text'>{{ field.help_text }}</dd>{% endif %}
{% endfor %}</dl>
</fieldset>
<button class="btn btn-primary" type='submit'>{% trans "Save Ticket CC" %}</button>
{% csrf_token %}</form>
</div>
</div>
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
{% endblock %} {% endblock %}