Sha256: ba65c48abd233c17e675e8352bf6ebd1b2b29c7c0b6480c8fc321c46e3c95aca

Contents?: true

Size: 510 Bytes

Versions: 24

Compression:

Stored size: 510 Bytes

Contents

<a href="#" id="config_<%= configuration.key %>" data-type="text" data-pk="<%= configuration.key %>" data-original-title="<%= configuration.name %>"><%= configuration.value %></a>

<script type='text/javascript'>
	$(function () {
  
	    //editables 
	    $('#config_<%= configuration.key %>').editable({
	      type: 'text'
				<% if configuration.required %>
				,validate: function(value) {
	      	if($.trim(value) == '') return 'Este campo é obrigatório';
	      }
			<% end %>
	    });

	});

</script>

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
my_admin-0.0.5 app/views/my_admin/fields/config/type/default.html.erb
my_admin-0.0.4 app/views/my_admin/fields/config/type/default.html.erb
my_admin-0.0.3 app/views/my_admin/fields/config/type/default.html.erb
my_admin-0.0.2 app/views/my_admin/fields/config/type/default.html.erb