Sha256: 710e684a33368e90c4e049a8b48ede17adb6ed185f2dacb645791ad4033aca1b

Contents?: true

Size: 1.2 KB

Versions: 4

Compression:

Stored size: 1.2 KB

Contents

<div id="page_content">
  <h2 id="page-title">Settings</h2>
  <div class="content">
    <form action="#{Blogaze::Controllers::Admin::Settings.r('save')}" method="post" class="tabular">
      <p>
        <label>Blog Title</label>
        <input type="text" name="settings[title]" value="#{@settings[:title]}">
      </p>
      <p>
        <label>Theme</label>
        <select name="settings[theme]">
        <?r @themes.each do |theme| ?>
          <option value="#{theme}" <?r if theme == @settings[:theme] ?>selected="selected"<?r end ?>>#{theme}</option>
        <?r end ?>
        </select>
      </p>
      <p>
        <label>Posts per page</label>
        <input type="text" name="settings[posts_per_page]" value="#{@settings[:posts_per_page]}">
      </p>
      <p>
        <label>Moderate comments?</label>
        <input type="radio" value="1" name="settings[moderate_comments]" <?r if @settings[:moderate_comments] == '1' ?>checked="checked"<?r end ?> /> Yes
        <input type="radio" value="0" name="settings[moderate_comments]" <?r if @settings[:moderate_comments] == '0' ?>checked="checked"<?r end ?> /> No
      </p>
      <p>
        <input type="submit" value="Save" />
      </p>
    </form>
  </div>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
blogaze-0.2.0 lib/blogaze/themes/default/admin/settings/index.xhtml
blogaze-0.1.0 lib/blogaze/themes/default/admin/settings/index.xhtml
blogaze-0.0.3 lib/blogaze/themes/default/admin/settings/index.xhtml
blogaze-0.0.2 proto/themes/default/admin/settings/index.xhtml