<commit_before>{% extends "ndf/base.html" %}

{% load i18n %}
{% load ndf_tags %}
{% load cache %}

{% block title %}   
{% if node %}
{% trans "Edit "%}{{title}} - {{node.name}}
{% else %}
{% trans "Create "%}{{title}}
{% endif %}
{% endblock %}

{% cache 3600 node_edit_base style %}
{% block style %}

.divider-line { font-size: xx-large; color:lightgray; }
.line-height-2 { line-height:2; }
.line-height-2pt5 { line-height:2.5; }
.fontsize-x-large { font-size: x-large; }

.margin-0 { margin: 0 !important ;}

.resource-drawer { 
border-color: #D3D3D3; border-style: solid; 
padding: 0 !important; 
overflow-y: auto;
}

.resource-drawer li.bullet-item:hover{
background-color: #ecf0f1; cursor:pointer;
}

.posted-by{ color: #808080; font-size: small; }

.selected-resource { background-color:lightgray !important ; }

.resource-type-image {
height:40px; 		
background-repeat:no-repeat; background-size: 48px 48px
}

#tags_error{
	color: red;
}

div.tags{ 
	/*padding: 5px 10px; */
	margin: 2px 5px;
	/*color: white;*/
	font-size: 1em;
	border: solid thin #FFD400;
}

i.remove-tag{
	padding-left: 8px;
	font-size: 1.1em;
	cursor: pointer;
}

{% endblock %}
{% endcache %}
 {% block head %}
	{{block.super}}
{% if title == "Page" or "File" in node.member_of_names_list %}
  <script src="/static/ndf/bower_components/jquery-ui/jquery-ui.js"></script> <!-- checked -->
  <script src="/static/ndf/bower_components/jqueryui-timepicker-addon/dist/jquery-ui-timepicker-addon.min.js"></script> <!-- checked -->
  <script src="/static/ndf/bower_components/jqueryui-timepicker-addon/dist/jquery-ui-sliderAccess.js"></script> <!-- checked -->
  <link rel="stylesheet" href="/static/ndf/bower_components/jqueryui-timepicker-addon/dist/jquery-ui-timepicker-addon.css"> <!-- checked -->
  <link rel="stylesheet" type="text/css" href="/static/ndf/bower_components/jquery-ui/themes/smoothness/jquery-ui.css"> <!-- checked -->
 {% endif %}
 {% endblock %}

{% block body_content %}

<form data-abide id="form-edit-node" method="POST" action="">    
    
    <header> 
	    <div class="row">
		 	<div class="large-8 columns">    
		 		<h3><span class="subheader">		
					{% if node %}
						{% trans "Editing " %} {{title}} : {{node.name}}
					{% else %}
						{% trans "Create New " %} {{title}} :
					{% endif %} 
				</span></h3>


			    <input tabindex="1" id="name_id" name="name" type="text" value="{{node.name}}" placeholder="Give the {{title}} a name.." {% if node.group_type %}disabled=disabled{% endif %} required>
		  		<label id="message" style="display:none; color:red"></label>

			    <small class="error">{% trans "Please give your page a descriptive name. It's helpful for others and for yourself." %}</small>
			  
		    </div>     
	    </div> 
    </header>
    {% check_group node as is_group %}
    <div class="edit-card">
        
	    <div class="row">

	      	<dl class="tabs pill large-12 columns select">

				<dd class="active node_tab" title="Click here to add Name, Description, Privacy and Tags">
		  		<!-- change name of collection tab overide block in your code -->
		  			<a>{% block page_tab %} {% trans "Node" %} {% endblock %}</a>
				</dd>
				{% if not ce_id %}
				<dd class="prior_node_tab" title="Click here to add/edit Prior Node">
				  	<a>{% block prior_node_tab %} {% trans "Requires" %} {% endblock %}</a>
				</dd>
				<!-- change name of collection tab overide block in your code -->
				<dd class="collection_tab" data-reveal-id="{% if not node %}{% if is_group == False %}publish_resource{% endif %}{% endif %}" title="Click here to add/edit collection">
				  	<a>{% block collection_tab %} {% trans "Collection" %} {% endblock %}</a>
				</dd>
				<!-- change name of metadata tab overide block in your code -->
				<dd class="meta_tab" title="Click here to add/edit metadata">
				  	<a>{% trans "Metadata" %} </a> 
				</dd>  
				<dd class="teaches_tab" title="Click here to add/edit teaches">
				 	<a>{% trans "Teaches" %} </a> 
				</dd>
		
				<dd class="assesses_tab" title="Click here to add/edit teaches">
				 	<a>{% trans "Assesses" %} </a> 
				</dd>	
				{% endif %}

				{% check_is_gstaff groupid request.user as is_gstaff %}
				{% if is_gstaff %}
					{% if title == "Page" %}
						<dd class="thread_prop_tab" title="Click here to add/edit properties of Thread">
						  	<a>{% trans "Interaction Settings" %} </a> <commit_msg>interaction settings will be visible in both page and file edit<commit_after>{% extends "ndf/base.html" %}

{% load i18n %}
{% load ndf_tags %}
{% load cache %}

{% block title %}   
{% if node %}
{% trans "Edit "%}{{title}} - {{node.name}}
{% else %}
{% trans "Create "%}{{title}}
{% endif %}
{% endblock %}

{% cache 3600 node_edit_base style %}
{% block style %}

.divider-line { font-size: xx-large; color:lightgray; }
.line-height-2 { line-height:2; }
.line-height-2pt5 { line-height:2.5; }
.fontsize-x-large { font-size: x-large; }

.margin-0 { margin: 0 !important ;}

.resource-drawer { 
border-color: #D3D3D3; border-style: solid; 
padding: 0 !important; 
overflow-y: auto;
}

.resource-drawer li.bullet-item:hover{
background-color: #ecf0f1; cursor:pointer;
}

.posted-by{ color: #808080; font-size: small; }

.selected-resource { background-color:lightgray !important ; }

.resource-type-image {
height:40px; 		
background-repeat:no-repeat; background-size: 48px 48px
}

#tags_error{
	color: red;
}

div.tags{ 
	/*padding: 5px 10px; */
	margin: 2px 5px;
	/*color: white;*/
	font-size: 1em;
	border: solid thin #FFD400;
}

i.remove-tag{
	padding-left: 8px;
	font-size: 1.1em;
	cursor: pointer;
}

{% endblock %}
{% endcache %}
 {% block head %}
	{{block.super}}
{% if title == "Page" or "File" in node.member_of_names_list %}
  <script src="/static/ndf/bower_components/jquery-ui/jquery-ui.js"></script> <!-- checked -->
  <script src="/static/ndf/bower_components/jqueryui-timepicker-addon/dist/jquery-ui-timepicker-addon.min.js"></script> <!-- checked -->
  <script src="/static/ndf/bower_components/jqueryui-timepicker-addon/dist/jquery-ui-sliderAccess.js"></script> <!-- checked -->
  <link rel="stylesheet" href="/static/ndf/bower_components/jqueryui-timepicker-addon/dist/jquery-ui-timepicker-addon.css"> <!-- checked -->
  <link rel="stylesheet" type="text/css" href="/static/ndf/bower_components/jquery-ui/themes/smoothness/jquery-ui.css"> <!-- checked -->
 {% endif %}
 {% endblock %}

{% block body_content %}

<form data-abide id="form-edit-node" method="POST" action="">    
    
    <header> 
	    <div class="row">
		 	<div class="large-8 columns">    
		 		<h3><span class="subheader">		
					{% if node %}
						{% trans "Editing " %} {{title}} : {{node.name}}
					{% else %}
						{% trans "Create New " %} {{title}} :
					{% endif %} 
				</span></h3>


			    <input tabindex="1" id="name_id" name="name" type="text" value="{{node.name}}" placeholder="Give the {{title}} a name.." {% if node.group_type %}disabled=disabled{% endif %} required>
		  		<label id="message" style="display:none; color:red"></label>

			    <small class="error">{% trans "Please give your page a descriptive name. It's helpful for others and for yourself." %}</small>
			  
		    </div>     
	    </div> 
    </header>
    {% check_group node as is_group %}
    <div class="edit-card">
        
	    <div class="row">

	      	<dl class="tabs pill large-12 columns select">

				<dd class="active node_tab" title="Click here to add Name, Description, Privacy and Tags">
		  		<!-- change name of collection tab overide block in your code -->
		  			<a>{% block page_tab %} {% trans "Node" %} {% endblock %}</a>
				</dd>
				{% if not ce_id %}
				<dd class="prior_node_tab" title="Click here to add/edit Prior Node">
				  	<a>{% block prior_node_tab %} {% trans "Requires" %} {% endblock %}</a>
				</dd>
				<!-- change name of collection tab overide block in your code -->
				<dd class="collection_tab" data-reveal-id="{% if not node %}{% if is_group == False %}publish_resource{% endif %}{% endif %}" title="Click here to add/edit collection">
				  	<a>{% block collection_tab %} {% trans "Collection" %} {% endblock %}</a>
				</dd>
				<!-- change name of metadata tab overide block in your code -->
				<dd class="meta_tab" title="Click here to add/edit metadata">
				  	<a>{% trans "Metadata" %} </a> 
				</dd>  
				<dd class="teaches_tab" title="Click here to add/edit teaches">
				 	<a>{% trans "Teaches" %} </a> 
				</dd>
		
				<dd class="assesses_tab" title="Click here to add/edit teaches">
				 	<a>{% trans "Assesses" %} </a> 
				</dd>	
				{% endif %}

				{% check_is_gstaff groupid request.user as is_gstaff %}
				{% if is_gstaff %}
					{% if title == "Page" or "File" in node.member_of_names_list %}
						<dd class="thread_prop_tab" title="Click here to add/edit properties of Thread">
						  	<a>{% trans "Interaction Settings" %} </a> 
{'fraction_non_alphanumeric': 0.18705603788476716, 'fraction_numerical': 0.011275228323373548, 'mean_word_length': 3.2685274302213667, 'pattern_counts': {'":': 0, '<': 127, '<?xml version=': 0, '>': 127, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5450083', 'n_tokens_mistral': 3573, 'n_tokens_neox': 3004, 'n_words': 750}