175 lines
8.2 KiB
HTML
175 lines
8.2 KiB
HTML
<%~if user.Status eq 'Administrator'%>
|
|
<div class="drow required">
|
|
<div for="Title" class="dcell name">Featured Link:</div>
|
|
<div class="dcell value">
|
|
<%~if in.modify%>
|
|
<%~set featured_article = $in.featured_article%>
|
|
<%~set featured_photo = $in.featured_photo%>
|
|
<%~elsif $ID%>
|
|
<%~set featured_article = Plugins::UI::is_featured('article', $ID)%>
|
|
<%~set featured_photo = Plugins::UI::is_featured('photo', $ID)%>
|
|
<%~endif%>
|
|
<input type="checkbox" id="featured_article" name="featured_article" value="1"<%if featured_article%> checked<%endif%>><label for="featured_article">Article</label>
|
|
<input type="checkbox" id="featured_photo" name="featured_photo" value="1"<%if featured_photo%> checked<%endif%>><label for="featured_photo">Photo/Video</label>
|
|
</div>
|
|
</div>
|
|
<%~endif%>
|
|
<div class="drow required">
|
|
<div for="Title" class="dcell name">Tag:</div>
|
|
<div class="dcell value">
|
|
<input type="checkbox" id="tag_swim" name="tag_swim" value="1"<%if tag_swim%> checked<%endif%>><label for="tag_swim">Swim</label>
|
|
<input type="checkbox" id="tag_bike" name="tag_bike" value="1"<%if tag_bike%> checked<%endif%>><label for="tag_bike">Bike</label>
|
|
<input type="checkbox" id="tag_run" name="tag_run" value="1"<%if tag_run%> checked<%endif%>><label for="tag_run">Run</label>
|
|
</div>
|
|
</div>
|
|
<div class="drow required">
|
|
<div for="Title" class="dcell name">Title: <span>*</span></div>
|
|
<div class="dcell value">
|
|
<input type="text" id="Title" name="Title" value="<%if Title%><%escape_html Title%><%endif%>" class="txt midtext" />
|
|
</div>
|
|
</div>
|
|
<div class="drow<%unless category_loop_selected%> required<%endunless%>">
|
|
<div for="CatLinks.CategoryID" class="dcell name">Category:<%unless category_loop_selected%> <span>*</span><%endunless%></div>
|
|
<div class="value wrappedtext">
|
|
<%~if config.db_gen_category_list == 2%>
|
|
<script type="text/javascript" src="<%config.build_static_url%>/treecats.js"></script>
|
|
<%~set selected_cats = Links::Tools::category_list_selected%>
|
|
<%~loop selected_cats%>
|
|
<input type="hidden" name="CatLinks.CategoryID" value="<%escape_html ID%>" />
|
|
<%~endloop%>
|
|
<noscript>
|
|
<ul class="categories">
|
|
<%~loop selected_cats%>
|
|
<li><%Full_Name%></li>
|
|
<%~endloop%>
|
|
<%~if not selected_cats.length%>
|
|
<li><%Links::language('ADD_SELCAT')%></li>
|
|
<%~endif%>
|
|
</ul>
|
|
</noscript>
|
|
<div id="treecats"></div>
|
|
<script type="text/javascript">
|
|
var tc = new treecats({ selectionMode : 'multiple', cgiURL : '<%config.db_cgi_url%>', imageURL : '<%config.build_static_url%>/images' });
|
|
tc.load();
|
|
</script>
|
|
<%~elsif category_loop_selected%>
|
|
<%~if category_loop.length > 1%>
|
|
<ul class="categories"><%loop category_loop%><li><%Full_Name%><input type="hidden" name="CatLinks.CategoryID" value="<%escape_html ID%>" /></li><%endloop%></ul>
|
|
<%~else%>
|
|
<%loop category_loop%><%Full_Name%><input type="hidden" name="CatLinks.CategoryID" value="<%escape_html ID%>" /><%endloop%>
|
|
<%~endif%>
|
|
<%~else%>
|
|
<select id="CatLinks.CategoryID" name="CatLinks.CategoryID">
|
|
<%~loop category_loop%>
|
|
<option value="<%escape_html ID%>"<%if selected%> selected="selected"<%endif%>><%' ' x $CatDepth%><%Name%></option>
|
|
<%~endloop%>
|
|
</select>
|
|
<%~endif%>
|
|
</div>
|
|
</div>
|
|
<div class="drow required">
|
|
<div for="Type" class="dcell name">Type: <span>*</span></div>
|
|
<div class="dcell value">
|
|
<select name="Type" id="Type">
|
|
<option value="editorial"<%if Type eq 'editorial'%> selected<%endif%>>Latest Tech</option>
|
|
<option value="news"<%if Type eq 'news'%> selected<%endif%>>Latest Headlines</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="drow required">
|
|
<div for="Link_Type" class="dcell name">Link Type: <span>*</span></div>
|
|
<div class="dcell value">
|
|
<% if modify and Link_Type%>
|
|
<input type="hidden" id="Link_Type" name="Link_Type" value="<%Link_Type%>">
|
|
<%if Link_Type eq 'photo'%>Photo Gallery<%elseif Link_Type eq 'video'%>Video<%else%>Article<%endif%>
|
|
<% else %>
|
|
<select name="Link_Type" id="Link_Type">
|
|
<option value="article"<%if Link_Type eq 'article'%> selected<%endif%>>Article</option>
|
|
<option value="photo"<%if Link_Type eq 'photo'%> selected<%endif%>>Photo Gallery</option>
|
|
<option value="video"<%if Link_Type eq 'video'%> selected<%endif%>>Video</option>
|
|
</select>
|
|
<% endif%>
|
|
</div>
|
|
</div>
|
|
<div class="drow">
|
|
<div for="Description" class="dcell name">Description:</div>
|
|
<div class="dcell value">
|
|
<textarea id="Description" name="Description" rows="3" class="txt midtext"><%if Description%><%escape_html Description%><%endif%></textarea>
|
|
</div>
|
|
</div>
|
|
<div class="drow">
|
|
<div for="Contact_Name" class="dcell name">Contact Name:</div>
|
|
<div class="dcell value">
|
|
<input type="text" id="Contact_Name" name="Contact_Name" value="<%if Contact_Name%><%escape_html Contact_Name%><%endif%>" class="txt midtext" />
|
|
</div>
|
|
</div>
|
|
<div class="drow">
|
|
<div for="Contact_Email" class="dcell name">Contact E-mail:</div>
|
|
<div class="dcell value">
|
|
<input type="text" id="Contact_Email" name="Contact_Email" value="<%if Contact_Email%><%escape_html Contact_Email%><%endif%>" class="txt midtext" />
|
|
</div>
|
|
</div>
|
|
<div class="drow">
|
|
<div for="Add_Date" class="dcell name">Add Date: </div>
|
|
<div class="dcell value">
|
|
<input type="text" id="Add_Date" name="Add_Date" value="<%if Add_Date%><%escape_html Add_Date%><%endif%>" class="txt" />
|
|
</div>
|
|
</div>
|
|
<div class="drow">
|
|
<div for="Mod_Date" class="dcell name">Mod Date: </div>
|
|
<div class="dcell value">
|
|
<input type="text" id="Mod_Date" name="Mod_Date" value="<%if Mod_Date%><%escape_html Mod_Date%><%endif%>" class="txt" />
|
|
</div>
|
|
</div>
|
|
<div id='photo_body' class="drow"<%if Link_Type ne 'photo' and Link_Type ne 'video' %> style="display:none"<% endif %>>
|
|
<div for="Main_Body" class="dcell name">Main Body:</div>
|
|
<div class="dcell value">
|
|
<textarea id="Main_Body" name="Main_Body" class="txt midtext" rows="3" ><%if Paragraph1%><%escape_html Paragraph1%><%endif%></textarea>
|
|
</div>
|
|
</div>
|
|
<div class="dbody" id='video_form'<%if Link_Type ne 'video'%> style="display:none"<%endif%>>
|
|
<% include include_form_video.html %>
|
|
</div>
|
|
<div class="dbody" id='article_photo_form'<%if Link_Type eq 'video'%> style="display:none"<%endif%>>
|
|
<% include include_form_article_photo.html %>
|
|
</div>
|
|
|
|
<div class="drow">
|
|
<div for="RelatedArticles" class="dcell name">Related Article IDs:<br />One per line</div>
|
|
<div class="dcell value">
|
|
<textarea id="RelatedArticles" name="RelatedArticles" rows="3" class="txt midtext"><%if RelatedArticles%><%escape_html RelatedArticles%><%endif%></textarea>
|
|
</div>
|
|
</div>
|
|
<%--
|
|
<div class="drow">
|
|
<div for="Related_Article1" class="dcell name">Related Article #1:</div>
|
|
<div class="dcell value">
|
|
<input type="text" id="Related_Article1" name="Related_Article1" value="<%if Related_Article1%><%escape_html Related_Article1%><%endif%>" class="txt midtext" />
|
|
</div>
|
|
</div>
|
|
<div class="drow">
|
|
<div for="Related_Article2" class="dcell name">Related Article #2:</div>
|
|
<div class="dcell value">
|
|
<input type="text" id="Related_Article2" name="Related_Article2" value="<%if Related_Article2%><%escape_html Related_Article2%><%endif%>" class="txt midtext" />
|
|
</div>
|
|
</div>
|
|
<div class="drow">
|
|
<div for="Related_Article3" class="dcell name">Related Article #3:</div>
|
|
<div class="dcell value">
|
|
<input type="text" id="Related_Article3" name="Related_Article3" value="<%if Related_Article3%><%escape_html Related_Article3%><%endif%>" class="txt midtext" />
|
|
</div>
|
|
</div>
|
|
<div class="drow">
|
|
<div for="Related_Article4" class="dcell name">Related Article #4:</div>
|
|
<div class="dcell value">
|
|
<input type="text" id="Related_Article4" name="Related_Article4" value="<%if Related_Article4%><%escape_html Related_Article4%><%endif%>" class="txt midtext" />
|
|
</div>
|
|
</div>
|
|
<div class="drow">
|
|
<div for="Related_Article5" class="dcell name">Related Article #5:</div>
|
|
<div class="dcell value">
|
|
<input type="text" id="Related_Article5" name="Related_Article5" value="<%if Related_Article5%><%escape_html Related_Article5%><%endif%>" class="txt midtext" />
|
|
</div>
|
|
</div>
|
|
--%>
|