Sha256: 34b9e608d94312e2c618561a8d150f816a8e82b099772350ae2f0dcd90e1b748

Contents?: true

Size: 499 Bytes

Versions: 2

Compression:

Stored size: 499 Bytes

Contents

angular.module("hyperadmin")
  .directive "formErrors", ->
    template: """
<section class="panel panel-danger" ng-if="errors">
  <div class="panel-heading">
    <h3 class="panel-title">Errors occurred</h3>
  </div>

  <div class="panel-body">
    <div ng-repeat="(attr, messages) in errors">
      <h4>{{ attr }}</h4>

      <ul>
        <li ng-repeat="message in messages">{{ message }}</li>
      </ul>
    </div>
  </div>
</section>
    """
    restrict: "E"
    scope:
      errors: "=errors"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hyper_admin-0.4.0 app/assets/javascripts/hyper_admin/angularjs/directives/form/form_errors.js.coffee
hyper_admin-0.3.0 app/assets/javascripts/hyper_admin/angularjs/directives/form/form_errors.js.coffee