mirror of
https://gitnet.fr/deblan/gist.git
synced 2021-08-14 08:30:49 +02:00
clone
This commit is contained in:
parent
f781d06112
commit
d793f2a1ec
@ -14,6 +14,8 @@ class CloneGistForm extends CreateGistForm
|
||||
|
||||
$this->builder->remove('cipher');
|
||||
|
||||
$this->builder->remove('type');
|
||||
|
||||
return $this->builder;
|
||||
}
|
||||
}
|
||||
|
@ -13,36 +13,6 @@
|
||||
<span class="glyphicon glyphicon-info-sign"></span>
|
||||
{{ 'form.cipher.alert'|trans }}
|
||||
</p>
|
||||
<div class="btn-toolbar">
|
||||
<div class="btn-group" id="options">
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
||||
<span id="type-label" data-tpl="{{ 'form.type.label'|trans }}">
|
||||
</span>
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
{% for item in form.type.vars.choices %}
|
||||
<li>
|
||||
<input
|
||||
{% if item.value == form.type.vars.value %}checked{% endif %}
|
||||
data-id="#type-label" type="radio" class="hide"
|
||||
data-title="{{ item.label }}"
|
||||
value="{{ item.value }}"
|
||||
name="form[type]"
|
||||
id="type-{{ loop.index }}" />
|
||||
|
||||
<a href="#">
|
||||
<label for="type-{{ loop.index }}">
|
||||
{{ item.label }}
|
||||
</label>
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p>
|
||||
{{ form_errors(form.content) }}
|
||||
{{ form_widget(form.content) }}
|
||||
|
Loading…
Reference in New Issue
Block a user