Skip to content

Commit

Permalink
improved form builder
Browse files Browse the repository at this point in the history
  • Loading branch information
ppazos committed Jan 27, 2024
1 parent e3464d0 commit 8513f2e
Show file tree
Hide file tree
Showing 3 changed files with 121 additions and 62 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version = 1.9.14
version = 1.9.15
group = com.cabolabs
12 changes: 10 additions & 2 deletions src/main/groovy/com/cabolabs/openehr/opt/Main.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,21 @@ class Main {
case 'uigen':
if (args.size() < 3)
{
println 'usage: opt uigen path_to_opt dest_folder'
println 'usage: opt uigen path_to_opt dest_folder [bootstrap] [generate]'
println 'bootstrap=bs4|bs5 bs4 is the bootstrap 4 style, bs5 is the bootstrap 5 style'
println 'generate=full|form full generates the whole html page, form generates just the form'
System.exit(0)
}

def path = args[1] //"resources"+ PS +"opts"+ PS +"Encuentro.opt"
def opt = loadAndParse(path)
def gen = new OptUiGenerator()


// options:
boolean full = (args.contains('form') ? false : true)
int bootstrap = (args.contains('bs4') ? 4 : 5)

def gen = new OptUiGenerator(full, bootstrap)
def ui = gen.generate(opt)

def destination_path = args[2]
Expand Down
Loading

0 comments on commit 8513f2e

Please sign in to comment.