// Generated by LiveScript 1.5.0
/**
 * @package    CleverStyle Framework
 * @subpackage System module
 * @category   modules
 * @author     Nazar Mokrynskyi <nazar@mokrynskyi.com>
 * @license    0BSD
 */
(function(){
  Polymer({
    is: 'cs-system-admin-users-add-user-form',
    behaviors: [cs.Polymer.behaviors.Language('system_admin_users_')],
    properties: {
      email: ''
    },
    save: function(){
      var this$ = this;
      cs.api('post api/System/admin/users', {
        email: this.email
      }).then(function(result){
        cs.ui.alert("<p class=\"cs-block-success cs-text-success\">" + this$.L.user_was_added(result.login, result.password) + "</p>");
      });
    }
  });
}).call(this);
