<div class="modal" tabindex="-1" role="dialog" aria-hidden="true">
    <form class="form-game-attribute" name="form.gameAttributeForm" ng-submit="submit()" novalidate>
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" aria-label="Close" ng-click="$hide()"><span aria-hidden="true">&times;</span></button>
                    <h3 class="modal-title">Edit Game Attribute</h3>
                </div>
                <div class="modal-body form">
                    <div class="form-group" ng-class="{ 'has-error': form.gameAttributeForm.key.$dirty && form.gameAttributeForm.key.$invalid }">
                        <label class="control-label" for="key">Key</label>
                        <div class="">
                            <input id="key" name="key" ng-model="fields.key" type="text" class="form-control" required>
                        </div>
                    </div>
                    <!-- Text input-->
                    <div class="form-group" ng-class="{ 'has-error': form.gameAttributeForm.name.$dirty && form.gameAttributeForm.name.$invalid }">
                        <label class="control-label" for="name">Name</label>
                        <div class="">
                            <input id="name" name="name" ng-model="fields.name" type="text" class="form-control" required>
                        </div>
                    </div>
                    <!-- Text input-->
                    <div class="form-group" ng-class="{ 'has-error': form.gameAttributeForm.value.$dirty && form.gameAttributeForm.value.$invalid }">
                        <label class="control-label" for="value">Value</label>
                        <div class="">
                            <input id="value" name="value" ng-model="fields.value" type="text" class="form-control" required>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button id="submit" name="submit" class="btn btn-labeled btn-primary" ng-disabled="form.gameAttributeForm.$invalid || isSubmitted"><span class="btn-label"><i class="fa fa-upload"></i></span> Submit</button>
                    <button class="btn btn-default btn-labeled" type="button" ng-click="modalEditActions.hide()"><span class="btn-label"><i class="fa fa-times"></i></span> Cancel</button>
                </div>
            </div>
        </div>
    </form>
</div>