{include file="header.tpl"}
<div class="form-group requiredmarkerdesc">Fields marked by '*' are required.</div>
<div id="outcome_forms" class="outcome-form-list">
  {foreach from=$outcomeforms item=form key=i}
    {if $i>0}
      <div class="delete-button-container">
        <span class="btn-group btn-group-top">
          <span class="delete-outcome deletebutton btn btn-secondary btn-sm">
            <a href="#" title="{str tag=deleteoutcome section=collection} '{$form.shorttitle}'">
              <span role="presentation" class="icon icon-trash-alt text-danger"></span>
            </a>
          </span>
        </span>
      </div>
    {/if}
    {$form.html|safe}
  {/foreach}
</div>
<div class="outcome-form-section">
  <a id="add_outcome" class="add-outcome-link link-blocktype" href="#">
    <span class="icon icon-plus" role="presentation" aria-hidden="true"></span>
    {get_string('addoutcomelink', 'collection')}</a>
</div>

<div id="outcome_buttons_container" class="outcome-form-section submitcancel form-group">
  <button id="submit_save" class="btn btn-primary submitcancel submit" type="submit">
    {str tag=save}
  </button>
  <button id="submit_cancel" class="submitcancel cancel" type="submit" data-url="{$cancelredirecturl}">
    {str tag=cancel}
  </button>
</div>

{include file="footer.tpl"}
