mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 22:43:19 +00:00
forms' skin updated for Editwindow
This commit is contained in:
@@ -3,81 +3,72 @@
|
||||
|
||||
{% block menu %}
|
||||
<table style="width:100%;height:30px;">
|
||||
<tr>
|
||||
<td style="width:10px;">
|
||||
</td>
|
||||
<td>
|
||||
{% trans %}Edition de 1 element{% endtrans %}
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
<a href="#" class="back_link">{% trans 'boutton::annuler' %}</a>
|
||||
</td>
|
||||
<td style="width:10px;">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px;">
|
||||
</td>
|
||||
<td>
|
||||
{% trans %}Edition de 1 element{% endtrans %} :
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
<a class="back_link" style="cursor: pointer;">{% trans 'boutton::annuler' %}</a>
|
||||
</td>
|
||||
<td style="width:10px;">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{% endblock %}
|
||||
|
||||
{% block response %}
|
||||
<form class="form_add_container bridge_form" action="/prod/bridge/action/{{ account.get_id() }}/{{action}}/{{element_type}}/" method="post">
|
||||
<table>
|
||||
<tr>
|
||||
<td class='column_left'>
|
||||
<label for="modif_title">{% trans 'Titre' %}</label>
|
||||
</td>
|
||||
<td class='column_right'>
|
||||
<input name="modif_title" type="text" value="{{element.get_title}}" />
|
||||
{{ error_form.display_errors('title', constraint_errors) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='column_left'>
|
||||
<label for="modif_description">{% trans 'Description' %}</label>
|
||||
</td>
|
||||
<td class='column_right'>
|
||||
<textarea name="modif_description" rows="3" >{{element.get_description}}</textarea>
|
||||
{{ error_form.display_errors('description', constraint_errors) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='column_left'>
|
||||
<label for="modif_category">{% trans 'Categorie' %}</label>
|
||||
</td>
|
||||
<td class='column_right'>
|
||||
{% set categories = account.get_api().get_connector.get_category_list() %}
|
||||
|
||||
<select name="modif_category">
|
||||
{% for category in categories %}
|
||||
<option {{element.get_category() == category.id ? "selected='selected'" : "" }} value="{{category.id}}" >{{category.id}}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='column_left'>
|
||||
<label for="modif_tags">{% trans 'tags' %}</label>
|
||||
</td>
|
||||
<td class='column_right'>
|
||||
<input name="modif_tags" type="text" value="{{element.get_tags()}}" />
|
||||
{{ error_form.display_errors('tags', constraint_errors) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='column_left'>{% trans 'Confidentialite' %}</td>
|
||||
<td class='column_right'>
|
||||
<div class='bridge_fleft'>
|
||||
<span>Privé</span>
|
||||
<input type="radio" name="modif_privacy" value="1" {{element.is_private ? "checked='checked'" : ""}} />
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="modif_title">{% trans 'Titre' %}</label>
|
||||
<div class="controls">
|
||||
<input name="modif_title" type="text" value="{{element.get_title}}" />
|
||||
{{ error_form.display_errors('title', constraint_errors) }}
|
||||
</div>
|
||||
<div class='bridge_fleft'>
|
||||
<span>public</span>
|
||||
<input type="radio" name="modif_privacy" value="0" {{element.is_private ? "" : "checked='checked'"}}/>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="modif_description">{% trans 'Description' %}</label>
|
||||
<div class="controls">
|
||||
<textarea name="modif_description" rows="3" >{{element.get_description}}</textarea>
|
||||
{{ error_form.display_errors('description', constraint_errors) }}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="elements_list[]" value="{{element.get_id}}" />
|
||||
<button class="form_submitter">{% trans 'boutton::valider' %}</button>
|
||||
<a target="#" class="back_link">{% trans 'boutton::annuler' %}</a>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="modif_category">{% trans 'Categorie' %}</label>
|
||||
<div class="controls">
|
||||
{% set categories = account.get_api().get_connector.get_category_list() %}
|
||||
<select name="modif_category">
|
||||
{% for category in categories %}
|
||||
<option {{element.get_category() == category.id ? "selected='selected'" : "" }} value="{{category.id}}" >{{category.id}}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="modif_tags">{% trans 'Tags' %}</label>
|
||||
<div class="controls">
|
||||
<input name="modif_tags" type="text" value="{{element.get_tags()}}" />
|
||||
{{ error_form.display_errors('tags', constraint_errors) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">{% trans 'Confidentialite' %}</label>
|
||||
<div class="controls">
|
||||
<label class="radio inline bridge_fleft">
|
||||
<input type="radio" name="modif_privacy" value="1" {{element.is_private ? "checked='checked'" : ""}} />
|
||||
{% trans 'privé' %}
|
||||
</label>
|
||||
<label class="radio inline bridge_fleft">
|
||||
<input type="radio" name="modif_privacy" value="0" {{element.is_private ? "" : "checked='checked'"}}/>
|
||||
{% trans 'public' %}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-actions">
|
||||
<input type="hidden" name="elements_list[]" value="{{element.get_id}}" />
|
||||
<button class="form_submitter btn btn-inverse">{% trans 'boutton::valider' %}</button>
|
||||
<button class="back_link btn btn-inverse">{% trans 'boutton::annuler' %}</button>
|
||||
</div>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
@@ -3,45 +3,41 @@
|
||||
|
||||
{% block menu %}
|
||||
<table style="width:100%;height:30px;">
|
||||
<tr>
|
||||
<td style="width:10px;">
|
||||
</td>
|
||||
<td>
|
||||
{% trans %}Edition de 1 element{% endtrans %}
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
<a href="#" class="back_link">{% trans 'boutton::annuler' %}</a>
|
||||
</td>
|
||||
<td style="width:10px;">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px;">
|
||||
</td>
|
||||
<td>
|
||||
{% trans %}Edition de 1 element{% endtrans %} :
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
<a class="back_link" style="cursor: pointer;">{% trans 'boutton::annuler' %}</a>
|
||||
</td>
|
||||
<td style="width:10px;">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{% endblock %}
|
||||
|
||||
{% block response %}
|
||||
<form class="form_add_container bridge_form" action="/prod/bridge/action/{{ account.get_id() }}/{{action}}/{{element_type}}/" method="post">
|
||||
<table>
|
||||
<tr>
|
||||
<td class='column_left'>
|
||||
<label for="modif_title">{% trans 'Titre' %}</label>
|
||||
</td>
|
||||
<td class='column_right'>
|
||||
<input name="modif_title" type="text" value="{{element.get_title}}" />
|
||||
{{ error_form.display_errors('title', constraint_errors) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='column_left'>
|
||||
<label for="modif_description">{% trans 'Description' %}</label>
|
||||
</td>
|
||||
<td class='column_right'>
|
||||
<textarea name="modif_description" rows="3" >{{element.get_description|default("")}}</textarea>
|
||||
{{ error_form.display_errors('description', constraint_errors) }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="elements_list[]" value="{{element.get_id}}" />
|
||||
<button class="form_submitter">{% trans 'boutton::valider' %}</button>
|
||||
<a target="#" class="back_link">{% trans 'boutton::annuler' %}</a>
|
||||
<form class="form_add_container bridge_form form-horizontal" action="/prod/bridge/action/{{ account.get_id() }}/{{action}}/{{element_type}}/" method="post">
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="modif_title">{% trans 'Titre' %}</label>
|
||||
<div class="controls">
|
||||
<input name="modif_title" type="text" value="{{element.get_title}}" />
|
||||
{{ error_form.display_errors('title', constraint_errors) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="modif_description">{% trans 'Description' %}</label>
|
||||
<div class="controls">
|
||||
<textarea name="modif_description" rows="3" >{{element.get_description|default("")}}</textarea>
|
||||
{{ error_form.display_errors('description', constraint_errors) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-actions">
|
||||
<input type="hidden" name="elements_list[]" value="{{element.get_id}}" />
|
||||
<button class="form_submitter btn btn-inverse">{% trans 'boutton::valider' %}</button>
|
||||
<button class="back_link btn btn-inverse">{% trans 'boutton::annuler' %}</button>
|
||||
</div>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
@@ -3,80 +3,72 @@
|
||||
|
||||
{% block menu %}
|
||||
<table style="width:100%;height:30px;">
|
||||
<tr>
|
||||
<td style="width:10px;">
|
||||
</td>
|
||||
<td>
|
||||
{% trans %}Edition de 1 element{% endtrans %}
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
<a href="#" class="back_link">{% trans 'boutton::annuler' %}</a>
|
||||
</td>
|
||||
<td style="width:10px;">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:10px;">
|
||||
</td>
|
||||
<td>
|
||||
{% trans %}Edition de 1 element{% endtrans %} :
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
<a class="back_link" style="cursor: pointer;">{% trans 'boutton::annuler' %}</a>
|
||||
</td>
|
||||
<td style="width:10px;">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{% endblock %}
|
||||
|
||||
{% block response %}
|
||||
<form class="form_add_container bridge_form" action="/prod/bridge/action/{{ account.get_id() }}/{{action}}/{{element_type}}/" method="post">
|
||||
<table>
|
||||
<tr>
|
||||
<td class='column_left'>
|
||||
<label for="modif_title">{% trans 'Titre' %}</label>
|
||||
</td>
|
||||
<td class='column_right'>
|
||||
<input name="modif_title" type="text" value="{{element.get_title}}" />
|
||||
{{ error_form.display_errors('title', constraint_errors) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='column_left'>
|
||||
<label for="modif_description">{% trans 'Description' %}</label>
|
||||
</td>
|
||||
<td class='column_right'>
|
||||
<textarea name="modif_description" rows="3" >{{element.get_description()|default("")}}</textarea>
|
||||
{{ error_form.display_errors('description', constraint_errors) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='column_left'>
|
||||
<label for="modif_tags">{% trans 'Tags' %}</label>
|
||||
</td>
|
||||
<td class='column_right'>
|
||||
<textarea name="modif_tags" rows="3" >{{element.get_tags()|default("")}}</textarea>
|
||||
{{ error_form.display_errors('tags', constraint_errors) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='column_left'>
|
||||
<label for="modif_category">{% trans 'Categorie' %}</label>
|
||||
</td>
|
||||
<td class='column_right'>
|
||||
{% set categorie = account.get_api().get_connector.get_category_list() %}
|
||||
<select name="modif_category">
|
||||
{% for key, value in categorie %}
|
||||
<option {{element.get_category == key ? "selected='selected'" : "" }} value="{{key}}" >{{value}}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='column_left'>{% trans 'Confidentialite' %}</td>
|
||||
<td class='column_right'>
|
||||
<div class='bridge_fleft'>
|
||||
<span>Privé</span>
|
||||
<input type="radio" name="modif_privacy" value="private" {{element.is_private ? "checked='checked'" : ""}} />
|
||||
<form class="form_add_container bridge_form form-horizontal" action="/prod/bridge/action/{{ account.get_id() }}/{{action}}/{{element_type}}/" method="post">
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="modif_title">{% trans 'Titre' %}</label>
|
||||
<div class="controls">
|
||||
<input name="modif_title" type="text" value="{{ element.get_title }}" />
|
||||
<p>{{ error_form.display_errors('title', constraint_errors) }}</p>
|
||||
</div>
|
||||
<div class='bridge_fleft'>
|
||||
<span>public</span>
|
||||
<input type="radio" name="modif_privacy" value="public" {{element.is_private ? "" : "checked='checked'"}}/>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="modif_description">{% trans 'Description' %}</label>
|
||||
<div class="controls">
|
||||
<textarea name="modif_description" rows="3" >{{ element.get_description|default("") }}</textarea>
|
||||
<p>{{ error_form.display_errors('description', constraint_errors) }}</p>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="elements_list[]" value="{{element.get_id}}" />
|
||||
<button class="form_submitter">{% trans 'boutton::valider' %}</button>
|
||||
<a target="#" class="back_link">{% trans 'boutton::annuler' %}</a>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="modif_tags">{% trans 'Tags' %}</label>
|
||||
<div class="controls">
|
||||
<textarea name="modif_tags" rows="3" >{{ element.get_tags()|default("") }}</textarea>
|
||||
<p>{{ error_form.display_errors('tags', constraint_errors) }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="modif_category">{% trans 'Categorie' %}</label>
|
||||
<div class="controls">
|
||||
{% set categorie = account.get_api().get_connector.get_category_list() %}
|
||||
<select name="modif_category">
|
||||
{% for key, value in categorie %}
|
||||
<option {{ element.get_category == key ? "selected='selected'" : "" }} value="{{key}}" >{{value}}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">{% trans 'Confidentialite' %}</label>
|
||||
<div class="controls">
|
||||
<label class="radio inline bridge_fleft">
|
||||
<input type="radio" name="modif_privacy" value="private" {{ element.is_private ? "checked='checked'" : "" }} />
|
||||
{% trans 'privé' %}
|
||||
</label>
|
||||
<label class="radio inline bridge_fleft">
|
||||
<input type="radio" name="modif_privacy" value="public" {{ element.is_private ? "" : "checked='checked'" }} />
|
||||
{% trans 'public' %}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-actions">
|
||||
<input type="hidden" name="elements_list[]" value="{{ element.get_id }}" />
|
||||
<button class="form_submitter btn btn-inverse">{% trans 'boutton::valider' %}</button>
|
||||
<button class="back_link btn btn-inverse">{% trans 'boutton::annuler' %}</button>
|
||||
</div>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
@@ -375,9 +375,9 @@
|
||||
|
||||
<div style="display:none" id="Edit_copyPreset_dlg">
|
||||
<form onsubmit="return false;">
|
||||
{% trans 'edit::preset:: titre' %} :
|
||||
<span>{% trans 'edit::preset:: titre' %} :</span>
|
||||
<input class="EDIT_presetTitle" type="text" name="name" style="width:300px;">
|
||||
<div style="position:relative; top:0px; left:0px; width:550px; height:250px; overflow:auto;"></div>
|
||||
<div class="Edit_preset_item"></div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
@@ -1513,7 +1513,7 @@ function preset_copy()
|
||||
{
|
||||
var c = p4.edit.T_fields[i]._value == "" ? "" : "checked=\"1\"";
|
||||
var v = p4.edit.T_fields[i]._value;
|
||||
html += "<div><input type=\"checkbox\" class=\"checkbox\" id=\"new_preset_"+p4.edit.T_fields[i].name+"\" value=\""+i+"\" "+c+"/><label for=\"new_preset_"+p4.edit.T_fields[i].name+"\">" +"<b>" + p4.edit.T_fields[i].name + " : </b></label> ";
|
||||
html += "<div><label class=\"checkbox\" for=\"new_preset_" + p4.edit.T_fields[i].name + "\"><input type=\"checkbox\" class=\"checkbox\" id=\"new_preset_" + p4.edit.T_fields[i].name + "\" value=\"" + i + "\" " + c + "/>" + "<b>" + p4.edit.T_fields[i].name + " : </b></label> ";
|
||||
html += cleanTags(p4.edit.T_fields[i]._value) + "</div>";
|
||||
}
|
||||
}
|
||||
|
@@ -2343,7 +2343,7 @@ DIV.thesaurus U.w {
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
height: 24px;
|
||||
height: 28px;
|
||||
overflow: hidden;
|
||||
text-align: center;
|
||||
}
|
||||
@@ -2445,6 +2445,20 @@ DIV.thesaurus U.w {
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
#Edit_copyPreset_dlg form span {
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.Edit_preset_item {
|
||||
position: relative;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
width: 550px;
|
||||
height: 250px;
|
||||
overflow: auto;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
#TH_Oreplace .btn,
|
||||
#TH_Opresets .btn {
|
||||
margin-bottom: 20px;
|
||||
@@ -3445,12 +3459,7 @@ dans l'onglet thesaurus : arbres, menus contextuels
|
||||
#dialog_publicator .api_content {
|
||||
top: 30px;
|
||||
bottom: 25px;
|
||||
}
|
||||
|
||||
#dialog_publicator .api_content .blockresponse {
|
||||
padding: 0 10px;
|
||||
top: 40px;
|
||||
overflow: auto;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
#dialog_publicator .api_content .blockmenu {
|
||||
@@ -3467,12 +3476,26 @@ dans l'onglet thesaurus : arbres, menus contextuels
|
||||
color: #0088CC;
|
||||
}
|
||||
|
||||
#dialog_publicator .api_content .blockresponse {
|
||||
padding: 0 10px;
|
||||
top: 40px;
|
||||
overflow: auto;
|
||||
z-index: 2000;
|
||||
}
|
||||
|
||||
#dialog_publicator .api_content .blockresponse .form-actions {
|
||||
background-color: #000000;
|
||||
border-top: none;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#dialog_publicator .api_infos {
|
||||
top: auto;
|
||||
height: 25px;
|
||||
background-image: url('/skins/icons/api_info.png');
|
||||
background-repeat: repeat-x;
|
||||
background-position: 0 0;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
#dialog_publicator .main_menu {
|
||||
@@ -3608,6 +3631,7 @@ dans l'onglet thesaurus : arbres, menus contextuels
|
||||
|
||||
#dialog_publicator .api_content .element {
|
||||
padding: 5px;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
#dialog_publicator .api_content .element.odd {
|
||||
@@ -3628,6 +3652,10 @@ dans l'onglet thesaurus : arbres, menus contextuels
|
||||
background-color: #999999;
|
||||
}
|
||||
|
||||
#dialog_publicator .api_content .element table .informations {
|
||||
width: 296px;
|
||||
}
|
||||
|
||||
.ui-selectable-helper {
|
||||
border: 1px dotted #CCCCCC;
|
||||
z-index: 10000;
|
||||
|
@@ -3583,13 +3583,7 @@ dans l'onglet thesaurus : arbres, menus contextuels
|
||||
#dialog_publicator .api_content {
|
||||
top: 30px;
|
||||
bottom: 25px;
|
||||
}
|
||||
|
||||
#dialog_publicator .api_content .blockresponse {
|
||||
padding: 0 10px;
|
||||
top: 40px;
|
||||
overflow: auto;
|
||||
z-index: 1000000000;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
#dialog_publicator .api_content .blockmenu {
|
||||
@@ -3606,12 +3600,26 @@ dans l'onglet thesaurus : arbres, menus contextuels
|
||||
color: #0088CC;
|
||||
}
|
||||
|
||||
#dialog_publicator .api_content .blockresponse {
|
||||
padding: 0 10px;
|
||||
top: 40px;
|
||||
overflow: auto;
|
||||
z-index: 2000;
|
||||
}
|
||||
|
||||
#dialog_publicator .api_content .blockresponse .form-actions {
|
||||
background-color: #D9D9D9;
|
||||
border-top: none;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#dialog_publicator .api_infos {
|
||||
top: auto;
|
||||
height: 25px;
|
||||
background-image: url('/skins/icons/api_info.png');
|
||||
background-repeat: repeat-x;
|
||||
background-position: 0 0;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
#dialog_publicator .main_menu {
|
||||
@@ -3760,6 +3768,7 @@ dans l'onglet thesaurus : arbres, menus contextuels
|
||||
|
||||
#dialog_publicator .api_content .element {
|
||||
padding: 5px;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
#dialog_publicator .api_content .element.odd {
|
||||
@@ -3780,6 +3789,10 @@ dans l'onglet thesaurus : arbres, menus contextuels
|
||||
background-color: #999999;
|
||||
}
|
||||
|
||||
#dialog_publicator .api_content .element table .informations {
|
||||
width: 296px;
|
||||
}
|
||||
|
||||
.ui-selectable-helper {
|
||||
border: 1px dotted #CCCCCC;
|
||||
z-index: 10000;
|
||||
|
Reference in New Issue
Block a user