Changeset 196
- Timestamp:
- 12/08/08 14:36:49 (4 years ago)
- Files:
-
- 1 modified
-
Explorator/trunk/app/views/repository/index.rhtml (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Explorator/trunk/app/views/repository/index.rhtml
r155 r196 1 <div class ="_WINDOW config " id ="repositorywindow" >2 <div class=' winoperations _NO_MINIMIZE '>1 <div class ="_WINDOW config " id ="repositorywindow"> 2 <div class=' winoperations _NO_MINIMIZE '> 3 3 <div class ='_close'> 4 4 X … … 8 8 <br> 9 9 <h1>Add Sparql Endpoint</h1> 10 <table width="100%" border="1">10 <table width="100%" border="1"> 11 11 <tr> 12 12 <td> 13 Repository Title13 Repository Title 14 14 </td> 15 15 <td> 16 Sparql URL 16 Sparql URL 17 </td> 18 <td> 19 Query Limit 17 20 </td> 18 21 </tr> … … 24 27 <input id = "sparqluri" name = "sparqlendpoint" value = "" size ="40"/> 25 28 </td> 29 <td> 30 <input id = "limit" name = "limit" value = "" size ="6"/> 31 </td> 26 32 </tr> 27 <tr>28 <td colspan=" 2" align="right">29 <input name = "title" type="button" value = "Add" onclick="new Ajax.Request('/repository/add?title='+$F($('sparqltitle'))+ '&uri=' +$F($('sparqluri')) ,{ method: 'get', onComplete: function( transport){ alert( transport.responseText); $('repositorywindow').remove();}} );"/>33 <tr> 34 <td colspan="3" align="right"> 35 <input name = "title" type="button" value = "Add" onclick="new Ajax.Request('/repository/add?title='+$F($('sparqltitle'))+ '&uri=' +$F($('sparqluri'))+ '&limit=' +$F($('limit')) ,{ method: 'get', onComplete: function( transport){ alert( transport.responseText); $('repositorywindow').remove();}} );"/> 30 36 </td> 31 32 </tr> 33 </table> 34 <h1>All Repositories</h1> 37 </tr> 38 </table><h1>All Repositories</h1> 35 39 <table width="100%" border="1"> 40 <tr> 41 <td> 42 Repository 43 </td> 44 <td width="10%"> 45 Enable 46 </td> 47 <td width="10%"> 48 Disable 49 </td> 50 <td> 51 Query Limit 52 </td> 53 </tr> 36 54 <%@repositories.each do |repository| %> 37 55 <tr> … … 39 57 <%=repository.title %> 40 58 </td> 59 <td align='center'> 60 <input name="<%=repository.title%>" onchange="new Ajax.Request('/repository/enable?title='+this.name,{ method: 'get'} );" type="radio" value="enable"<%= 'checked' if repository.enable %>/> 61 </td> 62 <td align='center'> 63 <input name="<%=repository.title%>" onchange="new Ajax.Request('/repository/disable?title='+this.name, { method: 'get'} );" type="radio" value="disable"<%= 'checked' if !repository.enable %>/> 64 </td> 41 65 <td> 42 <input name="<%=repository.title%>" onchange="new Ajax.Request('/repository/enable?title='+this.name,{ method: 'get'} );" type="radio" value="enable"<%= 'checked' if repository.enable %>/> Enable<input name="<%=repository.title%>" onchange="new Ajax.Request('/repository/disable?title='+this.name, { method: 'get'} );" type="radio" value="disable"<%= 'checked' if !repository.enable %>/> Disable66 <input id = "limit" onchange="new Ajax.Request('/repository/limit?title='+this.name + '&limit='+this.value,{ method: 'get'} );" name = "<%=repository.title%>" value = "<%=repository.limit%>" size ="6"/> 43 67 </td> 44 68 </tr><%end %> 45 <tr>69 <tr> 46 70 <td> 47 71 72 </td> 73 <td > 74 <input type = "button" onclick="$$('input[value=enable]').each(function(s) { s.click();});" value = "Enable All"> 48 75 </td> 49 76 <td> 50 <input type = "button" onclick="$$('input[value=enable]').each(function(s) { s.click();});" value = "Enable All"> <input type = "button" onclick="$$('input[value=disable]').each(function(s) { s.click();});" value = "Disable All"> 77 <input type = "button" onclick="$$('input[value=disable]').each(function(s) { s.click();});" value = "Disable All"> 78 </td> 79 <td> 51 80 </td> 52 81 </tr> 53 82 </table> 54 <br> 55 <input type="button" class = "_close" name="OK" value="OK"> 56 <input type="button" class = "_close" name="Close" value="Close"> 83 <br> 84 <input type="button" class = "_close" name="OK" value="Save"><input type="button" class = "_close" name="Close" value="Close"> 57 85 </div>
