Sha256: defa3101d5c97c09a4e9179afb819ecde773b51b43d3f3b35b5409742ad61439

Contents?: true

Size: 960 Bytes

Versions: 1

Compression:

Stored size: 960 Bytes

Contents

<%
	#Expected Passed-in Parameters Below
	data=data

	#Calculate Useful Variables
	first_version=(nil == data[:registry_settings][1])

	tenant_info=data
	quotas_origin=Yajl::load(data[:registry_settings][0][:settings])
	quotas_prev= first_version ? nil : (Yajl::load(data[:registry_settings][1][:settings]))

	comment_list=get_comment_list_from_data(data)
%>

<div id="tenant-opt-dialog" class="dialog tenant-opt-dialog">
	<legend>View Project Request</legend>

	<%=erb :tenant_options, :locals => {
		:who=>'applicant', 
		:review=>true, 
		:tenant_info=>tenant_info, 
		:quotas_origin=>quotas_origin,
		:quotas_prev=>quotas_prev
	} %>		
</div>

<%=erb :comment_list, :locals => {:comment_list=>comment_list} %>

<script type="text/javascript">

$(document).ready(init);

function init(){
	initReadonly();
}

function initReadonly(){
	$('#tenant-opt-dialog input').each(function(i,v){
		var $field=$(this);
		$field.attr('readonly', 'true');
	});
}

</script>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ocp_registry-0.0.5.pre views/view.erb