<s> import page . utils <EOL> import configuration <EOL> import htmlutils <EOL> import dbutils <EOL> def renderNewRepository ( req , db , user ) : <EOL> if not user . hasRole ( db , "<STR_LIT>" ) : <EOL> raise page . utils . DisplayMessage ( title = "<STR_LIT>" , body = "<STR_LIT>" ) <EOL> document = htmlutils . Document ( req ) <EOL> html = document . html ( ) <EOL> head = html . head ( ) <EOL> body = html . body ( ) <EOL> page . utils . generateHeader ( body , db , user ) <EOL> document . addExternalStylesheet ( "<STR_LIT>" ) <EOL> document . addExternalScript ( "<STR_LIT>" ) <EOL> target = body . div ( "<STR_LIT>" ) <EOL> basic = target . table ( "<STR_LIT>" ) <EOL> basic . col ( width = '<STR_LIT>' ) <EOL> basic . col ( width = '<STR_LIT:0>' ) <EOL> basic . col ( width = '<STR_LIT>' ) <EOL> basic . col ( width = '<STR_LIT>' ) <EOL> h1 = basic . tr ( ) . td ( '<STR_LIT>' , colspan = <NUM_LIT:4> ) . h1 ( ) . text ( "<STR_LIT>" ) <EOL> row = basic . tr ( "<STR_LIT:name>" ) <EOL> row . td ( "<STR_LIT>" ) . text ( "<STR_LIT>" ) <EOL> row . td ( "<STR_LIT>" ) . text ( ) <EOL> row . td ( "<STR_LIT:value>" ) . input ( name = "<STR_LIT:name>" ) <EOL> row . td ( "<STR_LIT>" ) . text ( ) <EOL> row = basic . tr ( "<STR_LIT>" ) <EOL> row . td ( colspan = <NUM_LIT:4> ) . text ( "<STR_LIT>" ) <EOL> row = basic . tr ( "<STR_LIT:path>" ) <EOL> row . td ( "<STR_LIT>" ) . text ( "<STR_LIT>" ) <EOL> row . td ( "<STR_LIT>" ) . text ( "<STR_LIT>" % ( configuration . base . HOSTNAME , configuration . paths . GIT_DIR ) ) <EOL> row . td ( "<STR_LIT:value>" ) . input ( name = "<STR_LIT:path>" ) <EOL> row . td ( "<STR_LIT>" ) . text ( "<STR_LIT>" ) <EOL> row = basic . tr ( "<STR_LIT>" ) <EOL> row . td ( colspan = <NUM_LIT:4> ) . text ( "<STR_LIT>" ) <EOL> row = basic . tr ( "<STR_LIT>" ) <EOL> row . td ( "<STR_LIT>" ) . text ( "<STR_LIT>" ) <EOL> row . td ( "<STR_LIT>" ) . text ( ) <EOL> row . td ( "<STR_LIT:value>" ) . input ( name = "<STR_LIT>" ) <EOL> row . td ( "<STR_LIT>" ) . text ( "<STR_LIT>" ) <EOL> row = basic . tr ( "<STR_LIT>" ) <EOL> row . td ( colspan = <NUM_LIT:4> ) . text ( "<STR_LIT>" ) <EOL> row = basic . tr ( "<STR_LIT>" ) <EOL> row . td ( "<STR_LIT>" ) . text ( "<STR_LIT>" ) <EOL> row . td ( "<STR_LIT>" ) . text ( ) <EOL> row . td ( "<STR_LIT:value>" ) . input ( name = "<STR_LIT>" , value = "<STR_LIT>" , disabled = "<STR_LIT>" ) <EOL> row . td ( "<STR_LIT>" ) . text ( ) <EOL> row = basic . tr ( "<STR_LIT>" ) <EOL> row . td ( colspan = <NUM_LIT:4> ) . text ( "<STR_LIT>" ) <EOL> row = basic . tr ( "<STR_LIT>" ) <EOL> row . td ( colspan = <NUM_LIT:4> ) . button ( "<STR_LIT>" ) . text ( "<STR_LIT>" ) <EOL> return document </s>
