File: edit.html

package info (click to toggle)
hiki 1.0.0-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,812 kB
  • sloc: ruby: 14,572; lisp: 926; sh: 19; makefile: 16
file content (53 lines) | stat: -rw-r--r-- 2,213 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<div class="<%= @contents[:view_style] %>">
<div class="adminmenu"><%= @contents[:tools] %></div>
<h1 class="header"><%= @contents[:title] %></h1>

<div class="update day">
  <% if @contents[:msg] %><div class="msg"><strong><%= @contents[:msg] %></strong></div><% end %>
  <% if @contents[:body] %><div class="preview"><%= @contents[:body] %></div><% end %>
  <% if @contents[:differ] %><div><%= @contents[:differ] %></div><% end %>
<div class="form">
  <form class="update" action="<%= @contents[:cgi_name] %>" method="POST">
    <input type="hidden" name="p" value="<%= @contents[:pagename] %>">
    <input type="hidden" name="c" value="save">
    <input type="hidden" name="md5hex" value="<%= @contents[:md5hex] %>">
    <input type="hidden" name="session_id" value="<%=@contents[:session_id]%>">
    <a name="form"></a>
    <p>
      <%=@conf.msg_title%> <input type="text" name="page_title" size="60" value="<%= @contents[:page_title] %>">
    </p>
    <div class="textarea">
      <textarea cols="80" rows="20" name="contents"><%= @contents[:contents] %></textarea>
    </div>
    <p>
      <% if @contents[:preview_button] %><input type="submit" name="preview" value="<%=@conf.msg_preview_button%>"><% end %>
      <% if @contents[:button] %><input type="submit" name="save" value="<%=@conf.msg_save%>"><% end %>
      <input type="checkbox" name="update_timestamp" value="on"<%=@contents[:update_timestamp]%>><%=@conf.msg_update_timestamp%>
    </p>
    <p>
      <%=@conf.msg_keyword_form%>
      <textarea cols="15" rows="3" name="keyword" class="keyword"><%= @contents[:keyword] %></textarea>
    </p>
    <% if @plugin.admin? %>
    <p>
      <input type="checkbox" name="freeze" value="on"<%= @contents[:freeze] %>><%=@conf.msg_freeze_checkbox%> 
    </p>
    <% end %>
    <div><%= @contents[:edit_proc] %></div>
  </form>
  <% if @contents[:link] %><div>
    <%=@conf.msg_latest%>: [<%= @contents[:link] %>]
  </div><% end %>
</div>
</div>

<hr class="sep">

<% unless @contents[:form_proc].empty? %><div class="update day"><%= @contents[:form_proc] %></div><% end %>

<div class="update day">
<div class="comment">
  <div class="commentbody"><p><%=@conf.msg_rules%></p></div>
</div>
</div>
</div>