distributionsystem.model.html 2.4 KB
Newer Older
nengyuangzhang's avatar
nengyuangzhang 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
<div class="inmodal">
    <div class="modal-header">
        <h4 class="modal-title">{{operation | translate}}(ID:{{distributionsystem.id}})</h4>
    </div>
    <div class="modal-body">
        <form role="form" name="form_distributionsystem" novalidate class="form-horizontal">
            <div class="form-group"><label class="col-sm-2 control-label">{{'SETTING.NAME' | translate}}</label>
                <div class="col-sm-10"><input ng-model="distributionsystem.name" type="text" name="distributionsystemname" class="form-control" required="">
                    <div class="m-t-xs" ng-show="form_distributionsystem.distributionsystemname.$invalid && form_distributionsystem.distributionsystemname.$dirty">
                        <small class="text-danger" ng-show="form_distributionsystem.distributionsystemname.$error.required">{{'SETTING.INPUT_NAME' | translate}}</small>
                    </div>
                </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="form-group"><label class="col-sm-2 control-label">{{'DISTRIBUTION_SYSTEM.SVG' | translate}}</label>
                <div class="col-sm-10"><textarea ng-model="distributionsystem.svg" rows="20" cols="50" name="distributionsystemsvg" class="form-control" required=""></textarea>
                    <div class="m-t-xs" ng-show="form_distributionsystem.distributionsystemsvg.$invalid && form_distributionsystem.distributionsystemsvg.$dirty">
                        <small class="text-danger" ng-show="form_distributionsystem.distributionsystemsvg.$error.required">{{'DISTRIBUTION_SYSTEM.INPUT_SVG' | translate}}</small>
                    </div>
                </div>
            </div>
            <div class="form-group"><label class="col-sm-2 control-label">{{'DISTRIBUTION_SYSTEM.DESCRIPTION' | translate}} ({{'SETTING.OPTIONAL' | translate}})</label>
                <div class="col-sm-10"><input ng-model="distributionsystem.description" type="text" name="distributionsystemdescription" class="form-control" >
                </div>
            </div>
        </form>
    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-white" ng-click="cancel()">{{'SETTING.CANCEL' | translate}}</button>
        <button type="button" ng-disabled="form_distributionsystem.$invalid" class="btn btn-primary" ng-click="ok()">{{'SETTING.SAVE' | translate}}</button>
    </div>
</div>