<inputtype="text"class="form-control typeahead"name="tags"id="tags"value="{% for tag in book.tags %}{{tag.name.strip()}}{% if not loop.last %}, {% endif %}{% endfor %}">
@ -274,6 +289,21 @@
'source': {{_('Source')|safe|tojson}},
};
var language = '{{ g.user.locale }}';
$("#add-identifier-line").click(function() {
// create a random identifier type to have a valid name in form. This will not be used when dealing with the form
var rand_id = Math.floor(Math.random() * 1000000).toString();
var line = '<tr>';
line += '<td><inputtype="text"class="form-control"name="identifier-type-'+ rand_id +'"required="required"placeholder="{{_('Identifier Type')}}"></td>';
line += '<td><inputtype="text"class="form-control"name="identifier-val-'+ rand_id +'"required="required"placeholder="{{_('Identifier Value')}}"></td>';
line += '<td><aclass="btn btn-default"onclick="removeIdentifierLine(this)">{{_('Remove')}}</a></td>';