Mini Shell
<div ng-controller="repositoryManage" class="controller-box">
<h1 ng-if="saveData._id">{{ lang.t("Modify Repository \"%s\"", details.name) }}</h1>
<h1 ng-if="!saveData._id">{{ lang.t("Create New Repository") }}</h1>
<fieldset class="row" >
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel">
<div class="x_content">
<br>
<form data-parsley-validate="" class="form-horizontal form-label-left" novalidate>
<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">{{ lang.t("Repository Name") }} <span class="required">*</span></label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input id="name" required="required" class="form-control col-md-7 col-xs-12" type="text" ng-model="saveData.name" value="saveData.name" />
<p class="help-block">{{ lang.t("This will be used internally for your convenience") }}</p>
</div>
</div>
<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="url">{{ lang.t("Repository URL") }} <span class="required">*</span></label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input id="url" required="required" ng-disabled="details._id" class="form-control col-md-7 col-xs-12" type="text" ng-model="saveData.url" value="saveData.url" />
<p class="help-block">{{ lang.t("The repository URL") }}</p>
</div>
</div>
<div class="ln_solid"></div>
<div class="form-group">
<div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3" ng-if="changed">
<button type="button" class="btn btn-default" ng-click="cancel()">{{ lang.t("Cancel") }}</button>
<button type="button" class="btn btn-primary" ng-click="saveChanges(true)" ng-disabled="saveing">{{ lang.t("Apply") }}</button>
<button type="button" class="btn btn-primary" ng-click="saveChanges()" ng-disabled="saveing">{{ lang.t("Save") }}</button>
</div>
<div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3" ng-if="!changed">
<a href="{{primaryURL}}/plugins/repositories" class="btn btn-default" ng-click="changeView('/plugins/repositories')">{{ lang.t("Back to Repositories") }}</a>
</div>
</div>
</form>
</div>
</div>
</div>
</fieldset>
</div>
Zerion Mini Shell 1.0