<h1 translate>Choose the paragraph to amend!</h1>

<div uib-alert ng-show="alert.show" ng-class="'alert-' + (alert.type || 'warning')" close="alert={}">
    {{ alert.msg }}
</div>

<form name="motionForm" ng-submit="gotoMotionForm(model)" novalidate>

    <div class="paragraph-select-list motion-text">
        <div ng-repeat="paragraph in paragraphs" class="paragraph-select-holder"
             ng-class="model.paragraph_selected == paragraph.paragraphNo ? 'selected' : ''">
            <div class="paragraph-select">
                <input type="radio" name="paragraph_selected" value="{{ paragraph.paragraphNo }}"
                       ng-model="model.paragraph_selected">
            </div>
            <div class="text-holder" ng-click="model.paragraph_selected = paragraph.paragraphNo"
                 ng-bind-html="paragraph.text | trusted"></div>
        </div>
    </div>

    <button type="submit" ng-disabled="model.paragraph_selected === null" class="btn btn-primary" translate>
        Continue
    </button>
    <button type="button" ng-click="closeThisDialog()" class="btn btn-default" translate>
        Cancel
    </button>
</form>
