src/p4l/templates/p4l/record_update_form.html
changeset 49 fcfa68f39f6b
parent 47 b07f8d11f2b8
child 50 2e52a8a10f8e
equal deleted inserted replaced
48:e2ccb0093452 49:fcfa68f39f6b
    61     </tr>
    61     </tr>
    62     <tr>
    62     <tr>
    63       <td>{{'subjects' | translate}}</td>
    63       <td>{{'subjects' | translate}}</td>
    64       <td>
    64       <td>
    65           <ul ng-repeat="subject in record.subjects">
    65           <ul ng-repeat="subject in record.subjects">
    66               <li>{{uriLabels[subject]}} <small class="text-muted">({{subject}})</small> <a ng-click='removeSubject(subject)' class="btn btn-default btn-xs"><i class="glyphicon glyphicon-trash"></i></a></li>
    66               <li>{{uriLabels[subject]}} <small class="text-muted">({{subject}})</small> <a ng-click='removeFromList(subject, record.subjects)' class="btn btn-default btn-xs"><i class="glyphicon glyphicon-trash"></i></a></li>
    67           </ul>
    67           </ul>
    68           <form class="form-inline" role="form" ng-submit="addSubject()">
    68           <form class="form-inline" role="form" ng-submit="addSubject()" ng-controller="ThesaurusCtrl">
    69 	        <div class="form-group col-md-8">
    69 	        <div class="form-group col-md-8">
    70 	          <input id="id_addSubjectText" ng-model="addSubjectText" class="semantic-tree form-control col-md-10" type="text" placeholder="{{'Add a new subject' | translate}}" required="required"/>
    70 	          <input id="id_addSubjectText" ng-model="addSubjectText" class="semantic-tree form-control col-md-10" type="text" placeholder="{{'Add a new subject' | translate}}" required="required"/>
    71 	          {{'or' | translate}} 
    71 	          {{'or' | translate}} 
    72 	          <span id="dialog-link-container-addSubjectText" class="dialog-link-container ui-state-default ui-corner-all">
    72 	          <span id="dialog-link-container-addSubjectText" class="dialog-link-container ui-state-default ui-corner-all">
    73 	            <a href="#" id="dialog-link-addSubjectText" class="btn dialog-link" title="Browse">{{'Browse' | translate}}</a>
    73 	            <a href="#" id="dialog-link-addSubjectText" class="btn dialog-link" title="Browse">{{'Browse' | translate}}</a>