mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 21:13:26 +00:00
PHRAS-1177_change-multi-on-field
- change : no more "multi" checkbox when creating a field - new field is not "report" anymore #time 1h
This commit is contained in:
@@ -923,8 +923,8 @@ class databox_field implements cache_cacheableInterface
|
||||
`thumbtitle`, `multi`, `business`, `aggregable`,
|
||||
`report`, `sorter`, `separator`)
|
||||
VALUES (null, :name, '', 0, 0, 1, 'string', '',
|
||||
null, 0,
|
||||
0, 0, 1, :sorter, '')";
|
||||
null, 0, 0, 0,
|
||||
1, :sorter, '')";
|
||||
|
||||
$name = self::generateName($name);
|
||||
|
||||
|
@@ -60,13 +60,11 @@
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<label class="checkbox">
|
||||
<input id="new-multivalued" type="checkbox">{% trans %}Multivalued{% endtrans %}
|
||||
</label>
|
||||
<button type="button" class="btn btn-success btn-submit-field"><i class="icon-ok icon-white"></i>{% trans %}Add{% endtrans %}</button>
|
||||
<button type="button" class="btn btn-cancel-field">{% trans %}Cancel{% endtrans %}</button>
|
||||
</div>
|
||||
</div>
|
||||
<input id="new-multivalued" type="hidden" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -130,7 +130,8 @@ define([
|
||||
"label_fr": $("#new-label_fr", this.$el).val(),
|
||||
"label_de": $("#new-label_de", this.$el).val(),
|
||||
"label_nl": $("#new-label_nl", this.$el).val(),
|
||||
"multi": $("#new-multivalued", this.$el).is(":checked")
|
||||
"multi": $("#new-multivalued", this.$el).is(":checked"),
|
||||
"report": false
|
||||
});
|
||||
|
||||
field.save(null, {
|
||||
|
Reference in New Issue
Block a user