Commit dd4526b3 authored by Prosper De Laure's avatar Prosper De Laure
Browse files

Bug : text field are added in archive search form

parent 1e9698eb
......@@ -90,6 +90,7 @@ class welcome
$archivalProfile->searchFields = [];
foreach ($archivalProfile->archiveDescription as $archiveDescription) {
switch ($archiveDescription->descriptionField->type) {
case 'text':
case 'name':
case 'date':
case 'number':
......
......@@ -59,7 +59,13 @@
</div>
</div>
</div>
<?merge .type.ifeq('text') ?>
<div class="form-group col-md-6">
<label class="col-md-6 control-label text-primary"><small><?merge .label ?></small></label>
<div class="col-md-6">
<input type="text" class="form-control input-sm" name="[?merge .name ?]" />
</div>
</div>
<?merge .type.ifeq('boolean') ?>
<div class="form-group col-md-6">
<label class="col-md-6 control-label text-primary"><small><?merge .label ?></small></label>
......@@ -77,9 +83,6 @@
</div>
</div>
</div>
</div>
<?merge .searchFields ?>
<div>
<?merge .type.ifeq('number') ?>
<div class="form-group col-md-12">
<label class="col-md-3 control-label text-primary"><small><?merge .label ?></small></label>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment