Sha256: 67427e4b8a66bba160ad0e83ac8115ea8fef87d4a62942e37d65d6d42081a22c
Contents?: true
Size: 1.93 KB
Versions: 1
Compression:
Stored size: 1.93 KB
Contents
<% _hb.alert(_("You do not have permission to view this page.")).back if !_site.has_rank?("admin") print _site.header(_("Search for project")) %> <form method="get"> <%=Knj::Web.hiddens([{:name => :show, :value => :project_search}, {:name => :choice, :value => :dosearch}])%> <%=_site.boxt(_("Enter criteria"), "350px")%> <table class="form"> <% print Knj::Web.inputs([{ :title => _("Name"), :name => :texname, :value => _get["texname"], :descr => _("A part of the name of the project you are looking for.") }]) %> <tr> <td colspan="2" class="buttons"> <input type="button" value="<%=_("Add new")%>" onclick="location.href='?show=project_edit';" /> <input type="submit" value="<%=_("Search")%>" /> </td> </tr> </table> <%=_site.boxb%> </form> <script type="text/javascript"> $("#texname").focus(); </script> <% if _get["choice"] == "dosearch" args = {"orderby" => "name"} if _get["texname"].to_s.length > 0 args["name_search"] = _get["texname"] end projects = _ob.list(:Project, args) %> <br /> <%=_site.boxt("Projects", "500px")%> <table class="form"> <thead> <tr> <th><%=_("Name")%></th> </tr> </thead> <tbody> <% projects.each do |project| %> <tr> <td> <%=project.html%> </td> </tr> <% end if projects.empty? %> <tr> <td colspan="1" class="error"> <%=_("No projects were found.")%> </td> </tr> <% end %> </tbody> </table> <%=_site.boxb%> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
knjtasks-0.0.3 | pages/project_search.rhtml |