bootstrap added in login/Account page

This commit is contained in:
Ysolyne Gresille
2012-07-10 18:47:44 +02:00
parent 02e0a4d9b4
commit 5cde9d36fd

View File

@@ -252,7 +252,7 @@
</table> </table>
</div> </div>
<div class="tab-pane"> <div class="tab-pane">
<div id="id-main" class="tab-content" style="display: block; text-align: center; overflow-y: auto; overflow-x: hidden;"> <div id="id-main" class="tab-content" style="display: block; overflow-y: auto; overflow-x: hidden;">
<div id="tab-account-cat"> <div id="tab-account-cat">
<ul> <ul>
<li><a href="#tab-account-info">{% trans 'Informations' %}</a></li> <li><a href="#tab-account-info">{% trans 'Informations' %}</a></li>
@@ -269,25 +269,29 @@
{% if notice != '' %} {% if notice != '' %}
<div class="notice">{{ notice }}</div> <div class="notice">{{ notice }}</div>
{% endif %} {% endif %}
<form name="account" id="account" action="/login/account.php" method="post"> <form name="account" id="account" class="form-horizontal" action="/login/account.php" method="post">
<table style="margin: 20px auto;"> <fieldset>
<tr>
<td></td> <legend>{% trans 'Informations personnelles' %}</legend>
<td><a href="/login/reset-password.php" class="link" target="_self">{% trans 'admin::compte-utilisateur changer mon mot de passe' %}</a></td>
<td></td> <div class="control-group">
</tr> <div class="controls">
<tr> <p><a href="/login/reset-password.php" class="link" target="_self">{% trans 'admin::compte-utilisateur changer mon mot de passe' %}</a></p>
<td colspan="3"></td> </div>
</tr> </div>
<tr>
<td class="form_label"><label for="form_login">{% trans 'admin::compte-utilisateur identifiant' %}</label></td> <div class="control-group">
<td class="form_input">{{ user.get_login() }}</td> <label class="form_label control-label" for="form_login">{% trans 'admin::compte-utilisateur identifiant' %}</label>
<td class="form_alert"></td> <div class="controls">
</tr> <p>{{ user.get_login() }}</p>
<tr> <p class="form_alert help-block"></p>
<td class="form_label"><label for="form_gender">{% trans 'admin::compte-utilisateur sexe' %}</label></td> </div>
<td class="form_input"> </div>
<select class="input_element" name="form_gender" id="form_gender" >
<div class="control-group">
<label class="form_label control-label" for="form_gender">{% trans 'admin::compte-utilisateur sexe' %}</label>
<div class="controls">
<select>
<option {% if user.get_gender() == "0" %}selected{% endif %} value="0" > <option {% if user.get_gender() == "0" %}selected{% endif %} value="0" >
{% trans 'admin::compte-utilisateur:sexe: mademoiselle' %} {% trans 'admin::compte-utilisateur:sexe: mademoiselle' %}
</option> </option>
@@ -298,121 +302,121 @@
{% trans 'admin::compte-utilisateur:sexe: monsieur' %} {% trans 'admin::compte-utilisateur:sexe: monsieur' %}
</option> </option>
</select> </select>
</td> <p class="form_alert help-block"></p>
<td class="form_alert"></td> </div>
</tr> </div>
<tr>
<td class="form_label"><label for="form_lastname">{% trans 'admin::compte-utilisateur nom' %}</label></td> <div class="control-group">
<td class="form_input"> <label class="form_label control-label" for="form_lastname">{% trans 'admin::compte-utilisateur nom' %}</label>
<input class="input_element" type="text" name="form_lastname" id="form_lastname" value="{{ user.get_lastname() }}" > <div class="controls">
</td> <input class="input_element" type="text" name="form_lastname" id="form_lastname" value="{{ user.get_lastname() }}" />
<td class="form_alert"></td> <p class="form_alert help-block"></p>
</tr> </div>
<tr> </div>
<td class="form_label"><label for="form_firstname">{% trans 'admin::compte-utilisateur prenom' %}</label></td>
<td class="form_input"> <div class="control-group">
<input class="input_element" type="text" name="form_firstname" id="form_firstname" value="{{ user.get_firstname() }}" > <label class="form_label control-label" for="form_firstname">{% trans 'admin::compte-utilisateur prenom' %}</label>
</td> <div class="controls">
<td class="form_alert"></td> <input class="input_element" type="text" name="form_firstname" id="form_firstname" value="{{ user.get_firstname() }}" />
</tr> <p class="form_alert help-block"></p>
<tr> </div>
<td colspan="3"> </div>
</tr>
<tr> <div class="control-group">
<td class="form_label"><label for="">{% trans 'admin::compte-utilisateur email' %}</label></td> <label class="form_label control-label" for="form_address">{% trans 'admin::compte-utilisateur adresse' %}</label>
<td class="form_input" colspan="2"> <div class="controls">
{{ user.get_email() }} <a class="link" href="/login/reset-email.php" target="_self">{% trans 'login:: Changer mon adresse email' %}</a> <input class="input_element" type="text" name="form_address" id="form_address" value="{{ user.get_address() }}" />
</td> <p class="form_alert help-block"></p>
</tr> </div>
<tr> </div>
<td colspan="3"></td>
</tr> <div class="control-group">
<tr> <label class="form_label control-label" for="form_zip">{% trans 'admin::compte-utilisateur code postal' %}</label>
<td colspan="3">{% trans 'Notification par email' %}</td> <div class="controls">
</tr> <input class="input_element" type="text" name="form_zip" id="form_zip" value="{{ user.get_zipcode() }}" />
<p class="form_alert help-block"></p>
</div>
</div>
<div class="control-group">
<label class="form_label control-label" for="form_city">{% trans 'admin::compte-utilisateur ville' %}</label>
<div class="controls">
<input class="input_element geoname_field" type="text" name="form_geonameid" id="form_geonameid" geonameid="{{ user.get_geonameid() }}" value="{{ geonames.name_from_id(user.get_geonameid()) }}" />
<p class="form_alert help-block"></p>
</div>
</div>
<div class="control-group">
<label class="form_label control-label"></label>
<div class="controls">
<div id="test_city" style="position: absolute; width: 200px; max-height: 200px; overflow-y: auto; z-index: 99999;"></div>
<p class="form_alert help-block"></p>
</div>
</div>
<div class="control-group">
<label class="form_label control-label" for="form_function">{% trans 'admin::compte-utilisateur poste' %}</label>
<div class="controls">
<input class="input_element" type="text" name="form_function" id="form_function" value="{{ user.get_position() }}" />
<p class="form_alert help-block"></p>
</div>
</div>
<div class="control-group">
<label class="form_label control-label" for="form_company">{% trans 'admin::compte-utilisateur societe' %}</label>
<div class="controls">
<input class="input_element" type="text" name="form_company" id="form_company" value="{{ user.get_company() }}" />
<p class="form_alert help-block"></p>
</div>
</div>
<div class="control-group">
<label class="form_label control-label" for="form_activity">{% trans 'admin::compte-utilisateur activite' %}</label>
<div class="controls">
<input class="input_element" type="text" name="form_activity" id="form_activity" value="{{ user.get_job() }}" />
<p class="form_alert help-block"></p>
</div>
</div>
<div class="control-group">
<label class="form_label control-label" for="form_phone">{% trans 'admin::compte-utilisateur telephone' %}</label>
<div class="controls">
<input class="input_element" type="text" name="form_phone" id="form_phone" value="{{ user.get_tel() }}" />
<p class="form_alert help-block"></p>
</div>
</div>
<div class="control-group">
<label class="form_label control-label" for="form_fax">{% trans 'admin::compte-utilisateur fax' %}</label>
<div class="controls">
<input class="input_element" type="text" name="form_fax" id="form_fax" value="{{ user.get_fax() }}" />
<p class="form_alert help-block"></p>
</div>
</div>
<legend>{% trans 'Notification par email' %}</legend>
{% for notification_group, nots in notifications%} {% for notification_group, nots in notifications%}
<tr> <p style="font-weight: bold;">{{ notification_group }}</p>
<td style="font-weight: bold;" colspan="3">{{ notification_group }}</td>
</tr>
{% for notification in nots %} {% for notification in nots %}
<tr> <div class="control-group">
<td class="form_label" colspan="2"><label for="notif_{{ notification['id'] }}">{{ notification['description'] }}</label></td> <label class="form_label control-label"></label>
<td class="form_input"> <div class="controls">
<label class="checkbox" for="notif_{{ notification['id'] }}">
<input type="checkbox" id="notif_{{ notification['id'] }}" name="notifications[{{ notification['id'] }}]" {% if not user.getPrefs('notification_' ~ notification['id']) == '0' %}checked{% endif %} value="1"/> <input type="checkbox" id="notif_{{ notification['id'] }}" name="notifications[{{ notification['id'] }}]" {% if not user.getPrefs('notification_' ~ notification['id']) == '0' %}checked{% endif %} value="1"/>
</td> {{ notification['description'] }}
</tr> </label>
<p class="form_alert help-block"></p>
</div>
</div>
{% endfor %} {% endfor %}
{% endfor %} {% endfor %}
<tr>
<td colspan="3"></td> <legend>{% trans 'FTP' %}</legend>
</tr>
<tr>
<td class="form_label"><label for="form_address">{% trans 'admin::compte-utilisateur adresse' %}</label></td>
<td class="form_input"> <table style="margin: 20px auto;">
<input class="input_element" type="text" name="form_address" id="form_address" value="{{ user.get_address() }}"/>
</td>
<td class="form_alert"></td>
</tr>
<tr>
<td class="form_label"><label for="form_zip">{% trans 'admin::compte-utilisateur code postal' %}</label></td>
<td class="form_input">
<input class="input_element" type="text" name="form_zip" id="form_zip" value="{{ user.get_zipcode() }}"/>
</td>
<td class="form_alert"></td>
</tr>
<tr>
<td class="form_label"><label for="form_city">{% trans 'admin::compte-utilisateur ville' %}</label></td>
<td class="form_input">
<input id="form_geonameid" type="text" geonameid="{{ user.get_geonameid() }}" value="{{ geonames.name_from_id(user.get_geonameid()) }}" class="input_element geoname_field" name="form_geonameid">
</td>
<td class="form_alert"></td>
</tr>
<tr>
<td class="form_label"></td>
<td class="form_input"><div id="test_city" style="position: absolute; width: 200px; max-height: 200px; overflow-y: auto; z-index: 99999;"></div></td>
<td class="form_alert"></td>
</tr>
<tr>
<td colspan="3">
</tr>
<tr>
<td class="form_label"><label for="form_function">{% trans 'admin::compte-utilisateur poste' %}</label></td>
<td class="form_input">
<input class="input_element" type="text" name="form_function" id="form_function" value="{{ user.get_position() }}"/>
</td>
<td class="form_alert"></td>
</tr>
<tr>
<td class="form_label"><label for="form_company">{% trans 'admin::compte-utilisateur societe' %}</label></td>
<td class="form_input">
<input class="input_element" type="text" name="form_company" id="form_company" value="{{ user.get_company() }}"/>
</td>
<td class="form_alert"></td>
</tr>
<tr>
<td class="form_label"><label for="form_activity">{% trans 'admin::compte-utilisateur activite' %}</label></td>
<td class="form_input">
<input class="input_element" type="text" name="form_activity" id="form_activity" value="{{ user.get_job() }}"/>
</td>
<td class="form_alert"></td>
</tr>
<tr>
<td class="form_label"><label for="form_phone">{% trans 'admin::compte-utilisateur telephone' %}</label></td>
<td class="form_input">
<input class="input_element" type="text" name="form_phone" id="form_phone" value="{{ user.get_tel() }}"/>
</td>
<td class="form_alert"></td>
</tr>
<tr>
<td class="form_label"><label for="form_fax">{% trans 'admin::compte-utilisateur fax' %}</label></td>
<td class="form_input">
<input class="input_element" type="text" name="form_fax" id="form_fax" value="{{ user.get_fax() }}"/>
</td>
<td class="form_alert"></td>
</tr>
<tr>
<td colspan="3">
</tr>
<tr> <tr>
<td class="form_label"><label for="form_activeFTP">{% trans 'admin::compte-utilisateur:ftp: Activer le compte FTP' %}</label></td> <td class="form_label"><label for="form_activeFTP">{% trans 'admin::compte-utilisateur:ftp: Activer le compte FTP' %}</label></td>
@@ -481,12 +485,15 @@
</td> </td>
</tr> </tr>
</table> </table>
<div style="text-align: center; margin: 5px 0;">
<div class="form-actions" style="background-color: transparent;">
<input type="submit" class="btn btn-info" value="{% trans 'boutton::valider' %}"> <input type="submit" class="btn btn-info" value="{% trans 'boutton::valider' %}">
</div> </div>
</fieldset>
</form> </form>
</td> </td>
</tr> </tr>
</table> </table>
</div> </div>