lore 0.4.7 → 0.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. data/History.txt +6 -0
  2. data/custom_models.rb +0 -153
  3. data/lib/lore/behaviours/lockable.rb +27 -13
  4. data/lib/lore/behaviours/movable.rb +31 -13
  5. data/lib/lore/behaviours/paginated.rb +31 -0
  6. data/lib/lore/behaviours/versioned.rb +15 -3
  7. data/lib/lore/gui/form_generator.rb +72 -104
  8. data/lib/lore/gui/lore_model_select_field.rb +59 -0
  9. data/lore.gemspec +4 -3
  10. metadata +13 -27
  11. data/lib/lore/gui/erb_template.rb +0 -79
  12. data/lib/lore/gui/erb_template_helpers.rhtml +0 -19
  13. data/lib/lore/gui/form.rb +0 -314
  14. data/lib/lore/gui/form_element.rb +0 -676
  15. data/lib/lore/gui/templates/button.rhtml +0 -2
  16. data/lib/lore/gui/templates/checkbox.rhtml +0 -3
  17. data/lib/lore/gui/templates/checkbox_row.rhtml +0 -1
  18. data/lib/lore/gui/templates/file.rhtml +0 -2
  19. data/lib/lore/gui/templates/file_readonly.rhtml +0 -3
  20. data/lib/lore/gui/templates/form_element.rhtml +0 -5
  21. data/lib/lore/gui/templates/form_element_horizontal.rhtml +0 -3
  22. data/lib/lore/gui/templates/form_element_listed.rhtml +0 -8
  23. data/lib/lore/gui/templates/form_table.rhtml +0 -3
  24. data/lib/lore/gui/templates/form_table_blank.rhtml +0 -3
  25. data/lib/lore/gui/templates/form_table_horizontal.rhtml +0 -8
  26. data/lib/lore/gui/templates/password.rhtml +0 -2
  27. data/lib/lore/gui/templates/password_readonly.rhtml +0 -3
  28. data/lib/lore/gui/templates/radio.rhtml +0 -1
  29. data/lib/lore/gui/templates/radio_row.rhtml +0 -1
  30. data/lib/lore/gui/templates/select.rhtml +0 -23
  31. data/lib/lore/gui/templates/text.rhtml +0 -2
  32. data/lib/lore/gui/templates/text_readonly.rhtml +0 -3
  33. data/lib/lore/gui/templates/textarea.rhtml +0 -3
  34. data/lib/lore/gui/templates/textarea_readonly.rhtml +0 -4
@@ -1,8 +0,0 @@
1
- <tr align="left" valign="middle">
2
- <td valign="top" class="lore_form_element_listed left">
3
- <b><%= label %></b>
4
- </td>
5
- <td valign="top" class="lore_form_element_listed right">
6
- <%= element %>
7
- </td>
8
- </tr>
@@ -1,3 +0,0 @@
1
- <ul class="form_elements">
2
- <%= form %>
3
- </ul>
@@ -1,3 +0,0 @@
1
-
2
- <%= form %>
3
-
@@ -1,8 +0,0 @@
1
-
2
- <div class="form_table">
3
- <table border="0" cellspacing="0" cellpadding="0">
4
- <tr>
5
- <%= form %>
6
- </tr>
7
- </table>
8
- </div>
@@ -1,2 +0,0 @@
1
-
2
- <input type="password" <%= tag_attributes(attributes) %> />
@@ -1,3 +0,0 @@
1
- <div class="lore_readonly_wrap" <%= tag_attributes(attributes) %> >
2
- *********
3
- </div>
@@ -1 +0,0 @@
1
- <nobr><font style="width: 120px; "><input type="radio" <%= tag_attributes(attributes) %> /> <%= attributes[:label] %> </font></nobr>
@@ -1 +0,0 @@
1
- <div class="lore_radio_row"><%= radios %></div>
@@ -1,23 +0,0 @@
1
- <div class="lore_select_wrap">
2
- <select <%= tag_attributes(attributes) %> >
3
- <%=
4
- option_index = 0
5
- options = "\n"
6
-
7
- range.each { |attrib|
8
- attrib = attrib.to_s
9
-
10
- if value.to_s == attrib.to_s then
11
- selected = 'selected'
12
- else selected = '' end
13
-
14
- options += '<option value="'+attrib.to_s+'" '+selected+' >'
15
- options += labels[option_index].to_s
16
- options += '</options>'
17
-
18
- option_index += 1
19
- }
20
- options
21
- %>
22
- </select>
23
- </div>
@@ -1,2 +0,0 @@
1
-
2
- <input type="text" <%= tag_attributes(attributes) %> />
@@ -1,3 +0,0 @@
1
- <div class="lore_readonly_wrap" <%= tag_attributes(attributes) %> >
2
- <%= attributes[:value] %>
3
- </div>
@@ -1,3 +0,0 @@
1
- <div class="lore_textarea_wrap">
2
- <textarea <%= tag_attributes(attributes) %> ><%= value %></textarea>
3
- </div>
@@ -1,4 +0,0 @@
1
-
2
- <div class="textarea_lore_readonly">
3
- <%= value.gsub('</p>', "\n\n").gsub('<br />',"\n").gsub(/<[^>]+>/,'')[0..1000].gsub("\n", '<br />') %>
4
- </div>