Skip to content

Commit

Permalink
module installation
Browse files Browse the repository at this point in the history
  • Loading branch information
b1conrad committed Sep 24, 2022
1 parent 814bc5f commit 5a019d4
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions krl/byu.hr.manage_apps.krl
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ ruleset byu.hr.manage_apps {
<td colspan="3">Add an app by URL:</td>
<td colspan="2">
<form method="POST" action="#{meta:host}/sky/event/#{meta:eci}/none/#{event_domain}/new_app">
<input type="text" name="url" placeholder="app URL">
<input class="wide90" type="text" name="url" placeholder="app URL">
<button type="submit">Add</button>
</form>
</td>
Expand All @@ -79,17 +79,31 @@ td, th {
border: 1px solid black;
padding: 5px;
}
table input {
input.wide90 {
width: 90%;
}
</style>
>>
manage = function(_headers){
eci = wrangler:channels("wrangler").head().get("id")
event_spec = "wrangler/install_ruleset_request"
installURL = <<#{meta:host}/sky/event/#{eci}/none/#{event_spec}>>
html:header("manage apps",styles,null,null,_headers)
+ <<
<h1>Manage apps</h1>
>>
+ display_apps()
+ <<
<h2>Technical</h2>
<p>If your app needs a module, install it here first:</p>
<form action="#{installURL}">
<input class="wide90" name="url" placeholder="module URL">
<br>
<input class="wide90" name="config" placeholder="{}">
<br>
<button type="submit">Install</button>
</form>
>>
+ html:footer()
}
app_rids = function(_headers){
Expand Down

1 comment on commit 5a019d4

@b1conrad
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A workaround for issue #77

Please sign in to comment.