mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 05:23:21 +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`,
|
`thumbtitle`, `multi`, `business`, `aggregable`,
|
||||||
`report`, `sorter`, `separator`)
|
`report`, `sorter`, `separator`)
|
||||||
VALUES (null, :name, '', 0, 0, 1, 'string', '',
|
VALUES (null, :name, '', 0, 0, 1, 'string', '',
|
||||||
null, 0,
|
null, 0, 0, 0,
|
||||||
0, 0, 1, :sorter, '')";
|
1, :sorter, '')";
|
||||||
|
|
||||||
$name = self::generateName($name);
|
$name = self::generateName($name);
|
||||||
|
|
||||||
|
@@ -60,13 +60,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<div class="controls">
|
<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-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>
|
<button type="button" class="btn btn-cancel-field">{% trans %}Cancel{% endtrans %}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<input id="new-multivalued" type="hidden" />
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -130,7 +130,8 @@ define([
|
|||||||
"label_fr": $("#new-label_fr", this.$el).val(),
|
"label_fr": $("#new-label_fr", this.$el).val(),
|
||||||
"label_de": $("#new-label_de", this.$el).val(),
|
"label_de": $("#new-label_de", this.$el).val(),
|
||||||
"label_nl": $("#new-label_nl", 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, {
|
field.save(null, {
|
||||||
|
Reference in New Issue
Block a user