Skip to content

Commit 3790faa

Browse files
authored
Merge pull request #1279 from idleberg/master
use Bootstrap classes
2 parents 5d9fdc2 + 7eaf26c commit 3790faa

File tree

1 file changed

+25
-23
lines changed

1 file changed

+25
-23
lines changed

lib/script-options-view.js

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,35 +9,37 @@ export default class ScriptOptionsView extends View {
99

1010
static content() {
1111
this.div({ class: 'options-view' }, () => {
12-
this.div({ class: 'panel-heading' }, 'Configure Run Options');
13-
this.table(() => {
14-
this.tr(() => {
15-
this.td({ class: 'first' }, () => this.label('Current Working Directory:'));
16-
this.td({ class: 'second' }, () => this.tag('atom-text-editor', { mini: '', class: 'editor mini', outlet: 'inputCwd' }));
17-
});
18-
this.tr(() => {
19-
this.td(() => this.label('Command'));
20-
this.td(() => this.tag('atom-text-editor', { mini: '', class: 'editor mini', outlet: 'inputCommand' }));
21-
});
22-
this.tr(() => {
23-
this.td(() => this.label('Command Arguments:'));
24-
this.td(() => this.tag('atom-text-editor', { mini: '', class: 'editor mini', outlet: 'inputCommandArgs' }));
25-
});
26-
this.tr(() => {
27-
this.td(() => this.label('Program Arguments:'));
28-
this.td(() => this.tag('atom-text-editor', { mini: '', class: 'editor mini', outlet: 'inputScriptArgs' }));
29-
});
30-
this.tr(() => {
31-
this.td(() => this.label('Environment Variables:'));
32-
this.td(() => this.tag('atom-text-editor', { mini: '', class: 'editor mini', outlet: 'inputEnv' }));
12+
this.h4({ class: 'modal-header' }, 'Configure Run Options');
13+
this.div({ class: 'modal-body'}, () => {
14+
this.table(() => {
15+
this.tr(() => {
16+
this.td({ class: 'first' }, () => this.label('Current Working Directory:'));
17+
this.td({ class: 'second' }, () => this.tag('atom-text-editor', { mini: '', class: 'editor mini', outlet: 'inputCwd' }));
18+
});
19+
this.tr(() => {
20+
this.td(() => this.label('Command'));
21+
this.td(() => this.tag('atom-text-editor', { mini: '', class: 'editor mini', outlet: 'inputCommand' }));
22+
});
23+
this.tr(() => {
24+
this.td(() => this.label('Command Arguments:'));
25+
this.td(() => this.tag('atom-text-editor', { mini: '', class: 'editor mini', outlet: 'inputCommandArgs' }));
26+
});
27+
this.tr(() => {
28+
this.td(() => this.label('Program Arguments:'));
29+
this.td(() => this.tag('atom-text-editor', { mini: '', class: 'editor mini', outlet: 'inputScriptArgs' }));
30+
});
31+
this.tr(() => {
32+
this.td(() => this.label('Environment Variables:'));
33+
this.td(() => this.tag('atom-text-editor', { mini: '', class: 'editor mini', outlet: 'inputEnv' }));
34+
});
3335
});
3436
});
35-
this.div({ class: 'block buttons' }, () => {
37+
this.div({ class: 'modal-footer' }, () => {
3638
const css = 'btn inline-block-tight';
3739
this.button({ class: `btn ${css} cancel`, outlet: 'buttonCancel', click: 'close' }, () =>
3840
this.span({ class: 'icon icon-x' }, 'Cancel'),
3941
);
40-
this.span({ class: 'right-buttons' }, () => {
42+
this.span({ class: 'pull-right' }, () => {
4143
this.button({ class: `btn ${css} save-profile`, outlet: 'buttonSaveProfile', click: 'saveProfile' }, () =>
4244
this.span({ class: 'icon icon-file-text' }, 'Save as profile'),
4345
);

0 commit comments

Comments
 (0)