<%@ include file="/WEB-INF/templates/taglibs.jsp" %>

<form class="form-inline" role="form">
  <div>
    <label>Links</label>
  </div>
  <div class="pb15" ng-repeat="link in config.links">
    <div class="form-group">
      <label class="sr-only" for="title-{{$index}}"><fmt:message key="citcorpore.comum.titulo" /></label>
      <input type="text" id="title-{{$index}}" class="form-control" placeholder="<fmt:message key="citcorpore.comum.titulo" />" ng-model="link.title" required="">
    </div>
    <div class="form-group">
      <label class="sr-only" for="href-{{$index}}">URL</label>
      <input type="url" id="href-{{$index}}" class="form-control" placeholder="http://exemplo.com" ng-model="link.href" required="">
    </div>
    <button type="button" class="btn btn-warning" ng-click="removeLink($index)">
      <i class="fa fa-minus"></i> <fmt:message key="citcorpore.comum.remover" />
    </button>
  </div>
  <button type="button" class="btn btn-citsmart" ng-click="addLink()">
    <i class="fa fa-plus"></i> <fmt:message key="citcorpore.comum.adicionar"/>
  </button>
</form>