<%-- #RevizeProperties USE REVIZE MENU (DOCUMENT PROPERTIES) TO EDIT DATA BELOW:
status=new
options=
server=localhost:80
projectName=
label=
location=
version=
docType=editpage
subType=form
moduleName=
fieldName=
channels=|
description=
--%><%-- #BeginRZ-PageHeader --%><%@
page language="java" %><%
String rzmodule = "alert";%><%@
include file="/util/setup_editform_header.jsp"
%><%-- #EndRZ-PageHeader --%>
<%@ include file="/plugins/_editforms_/v2/includes/bootstrap.jsp"%><%

formTitle = "Edit Alert";

// Leave history blank to omit button
historyStr = "alert_title{Alert Title},alert_brief{Alert Brief},alert_detail{Alert Detail}";

%><%@ include file="/plugins/_editforms_/v2/includes/header.jsp"%>


		<div id="revize-main">

			<!-- Make use to add name="XMLForm" and the hidden XMLString field -->
			<form id="rz-form" name="XMLForm" method="post" action="">
				<input name="XMLString" type="hidden" />

				<%@ include file="/plugins/_editforms_/v2/includes/editform-buttons-top.jsp"%>

				<div class="form-container">

					<div class="container">
						<div class="row">
							<div class="col-sm-8 col-sm-offset-2">

							  <div class="tab-content rz-tab-content">
							    <div role="tabpanel" class="tab-pane fade in active rz-tab-pane" id="edit-tab">

								    <div class="rz-edit-form-fields">

										<%rz.fetch("alert", "alert_title");%>
										<rzt:text-field
											label="Alert Title"
											field="alert_title"
											content="<%=rz.content%>"
											placeholder="Enter title here"
											help="Leaving this blank will hide the alert"
										/>

										<div class="form-group form-group-lg rz-form-group rz-form-group-lg revize-textarea" id="alertContent">
											<label for="alertBrief">Alert Brief <small></small></label>
											<span style="background:#fff">
                                            <rz:fetch module="alert" field="alert_brief"
                                            options="richtext" output="none">
                                            <input type="hidden" id="alertBrief" class="form-control" name="alert_brief" />
                                            <script language="JavaScript" type="text/JavaScript">
                                            RZ.module = 'alert'; RZ.field = 'alert_brief'; RZ.recordid = '';
                                            RZ.value = <%=StringUtils.convertHtmlForSource(rz.content)%>;
                                            RZ.width = '800'; RZ.height = '400';
                                            RZ.options = 'maxlength=120&contentsize=true&ImgMap=false&SpellCheckAuto=true&EditFormWizard=true&Source=true';
                                            RZ.rtestyles = '-h1,-h3,-h4,-h5,-h6,-blockquote,-div,-superscript,-subscript,.header,.subheader';
                                            RZ.linkmodule = '';
                                            RZ.linkpathname = '';
                                            RZ.linktemplate = '';
                                            RZ.linkisnewfolder = '';
                                            RZ.filelocation = '/';
                                            RZ.imagelocation = '/';
                                            RZ.imagemaxwidth = '';
                                            RZ.imagemaxheight = '';
                                            RZ.imagemaxbytes = '';
                                            RZ.set = '';
                                            RZeditor();
                                            </script>
                                            </rz:fetch>
                                            </span>
											<span class="help-block rz-help-block">This is where you would put in all your pages content (For security reasons please do not attempt placing any javasript within the text editor)</span>
											<span class="help-block rz-help-block">Max 120 characters here</span>
										</div>

										<div class="form-group form-group-lg rz-form-group rz-form-group-lg revize-textarea" id="alertContent">
											<label for="pageContent">Page Content <small></small></label>
											<span style="background:#fff">
                                            <rz:fetch module="alert" field="alertmsg"
                                            options="richtext" output="none">
                                            <input type="hidden" id="pageContent" class="form-control" name="alertmsg" />
                                            <script language="JavaScript" type="text/JavaScript">
                                            RZ.module = 'alert'; RZ.field = 'alertmsg'; RZ.recordid = '';
                                            RZ.value = <%=StringUtils.convertHtmlForSource(rz.content)%>;
                                            RZ.width = '800'; RZ.height = '400';
                                            RZ.options = '&contentsize=true&ImgMap=false&SpellCheckAuto=true&EditFormWizard=true&Source=true';
                                            RZ.rtestyles = '-h1,-h3,-h4,-h5,-h6,-blockquote,-div,-superscript,-subscript,.header,.subheader';
                                            RZ.linkmodule = '';
                                            RZ.linkpathname = '';
                                            RZ.linktemplate = '';
                                            RZ.linkisnewfolder = '';
                                            RZ.filelocation = '/';
                                            RZ.imagelocation = '/';
                                            RZ.imagemaxwidth = '';
                                            RZ.imagemaxheight = '';
                                            RZ.imagemaxbytes = '';
                                            RZ.set = '';
                                            RZeditor();
                                            </script>
                                            </rz:fetch>
                                            </span>
											<span class="help-block rz-help-block">This is where you would put in all your pages content (For security reasons please do not attempt placing any javasript within the text editor)</span>
										</div>

										<% if( rz.isvalidfield("alert","emailnotify") ) { %>
										<div id="rz-checkboxs">

											<%-- Field must be emailnotify and set up in the module as emailnotify --%>
											<rzt:checkbox
												label="Send email notification?"
												field="emailnotify"
												checkedValue="yes"
											/>

										</div><%
										} %>

								    </div><!-- /.rz-edit-form-fields -->

								<%@ include file="/plugins/_editforms_/v2/includes/editform-buttons-bottom.jsp"%>

							  </div><!-- /tab-content -->

						    </div><!-- /.col-md-10 -->
					    </div><!-- /.row -->
				    </div><!-- /.container -->

				</div><!-- /.form-container -->

			</form>

		</div><!-- /#revize-main -->

	</div><!-- /#revize-main-wrap -->

<%@ include file="/plugins/_editforms_/v2/includes/scripts.jsp"%>
<%-- Custom Scripts can be added here after the standard scripts --%>
<%@ include file="/plugins/_editforms_/v2/includes/footer.jsp"%>