675 } |
675 } |
676 |
676 |
677 ui_scrolledwindow(obj, .hexpand = TRUE, .vexpand = TRUE, .subcontainer = UI_CONTAINER_NO_SUB) { |
677 ui_scrolledwindow(obj, .hexpand = TRUE, .vexpand = TRUE, .subcontainer = UI_CONTAINER_NO_SUB) { |
678 ui_grid(obj, .margin = 10, .columnspacing = 10, .rowspacing = 10) { |
678 ui_grid(obj, .margin = 10, .columnspacing = 10, .rowspacing = 10) { |
679 ui_llabel(obj, .label = "Name"); |
679 ui_llabel(obj, .label = "Name"); |
680 ui_hbox0(obj) { |
680 ui_textfield(obj, .value = wdata->repo_name, .width = 15); |
681 ui_textfield(obj, .value = wdata->repo_name, .width = 15); |
|
682 } |
|
683 ui_newline(obj); |
681 ui_newline(obj); |
684 ui_llabel(obj, .label = "URL"); |
682 ui_llabel(obj, .label = "URL"); |
685 ui_textfield(obj, .value = wdata->repo_url, .hexpand = TRUE); |
683 ui_textfield(obj, .value = wdata->repo_url, .hexpand = TRUE); |
686 ui_newline(obj); |
684 ui_newline(obj); |
687 |
685 |
688 ui_llabel(obj, .label = "Credentials", .style = UI_LABEL_STYLE_TITLE, .colspan = 2); |
686 ui_llabel(obj, .label = "Credentials", .style = UI_LABEL_STYLE_TITLE, .colspan = 2); |
689 ui_newline(obj); |
687 ui_newline(obj); |
690 ui_hbox(obj, .spacing = 4, .colspan = 2) { |
688 ui_hbox(obj, .spacing = 4, .colspan = 2) { |
691 ui_combobox(obj, .list = wdata->repo_credentials); |
689 ui_combobox(obj, .list = wdata->repo_credentials); |
692 ui_hbox0(obj) { |
690 ui_button(obj, .label = "New Credentials", .onclick = credentials_new); |
693 ui_button(obj, .label = "New Credentials", .onclick = credentials_new); |
|
694 } |
|
695 } |
691 } |
696 ui_newline(obj); |
692 ui_newline(obj); |
697 ui_expander(obj, .spacing = 10, .colspan = 2, .label = "Unencrypted User/Password", .margin = 10) { |
693 ui_expander(obj, .spacing = 10, .colspan = 2, .label = "Unencrypted User/Password", .margin = 10) { |
698 ui_llabel(obj, .label = "Store the credentials unencrypted in the repository and not in the secret store", .style = UI_LABEL_STYLE_DIM); |
694 ui_llabel(obj, .label = "Store the credentials unencrypted in the repository and not in the secret store", .style = UI_LABEL_STYLE_DIM); |
699 ui_grid(obj, .rowspacing = 10, .columnspacing = 10, .fill = UI_OFF) { |
695 ui_grid(obj, .rowspacing = 10, .columnspacing = 10, .fill = UI_OFF) { |
804 ui_listview(obj, .list = wdata->keys_list, .fill = UI_ON, .onselection = keys_onselect, .getvalue = keylist_getvalue); |
800 ui_listview(obj, .list = wdata->keys_list, .fill = UI_ON, .onselection = keys_onselect, .getvalue = keylist_getvalue); |
805 } |
801 } |
806 |
802 |
807 ui_grid(obj, .columnspacing = 30, .rowspacing = 10) { |
803 ui_grid(obj, .columnspacing = 30, .rowspacing = 10) { |
808 ui_llabel(obj, .label = "Identifier"); |
804 ui_llabel(obj, .label = "Identifier"); |
809 ui_hbox0(obj) { |
805 ui_textfield(obj, .value = wdata->key_name, .groups = UI_GROUPS(SETTINGS_STATE_KEYS_SELECTED)); |
810 ui_textfield(obj, .value = wdata->key_name, .groups = UI_GROUPS(SETTINGS_STATE_KEYS_SELECTED)); |
|
811 } |
|
812 ui_newline(obj); |
806 ui_newline(obj); |
813 ui_llabel(obj, .label = "Type"); |
807 ui_llabel(obj, .label = "Type"); |
814 ui_hbox0(obj) { |
808 ui_textfield(obj, .value = wdata->key_type, .groups = UI_GROUPS(SETTINGS_STATE_DISABLED)); |
815 ui_textfield(obj, .value = wdata->key_type, .groups = UI_GROUPS(SETTINGS_STATE_DISABLED)); |
|
816 } |
|
817 ui_newline(obj); |
809 ui_newline(obj); |
818 ui_llabel(obj, .label = "File"); |
810 ui_llabel(obj, .label = "File"); |
819 ui_hbox0(obj) { |
811 ui_textfield(obj, .value = wdata->key_file, .groups = UI_GROUPS(SETTINGS_STATE_KEYS_SELECTED)); |
820 ui_textfield(obj, .value = wdata->key_file, .groups = UI_GROUPS(SETTINGS_STATE_KEYS_SELECTED)); |
|
821 } |
|
822 } |
812 } |
823 } |
813 } |
824 } |
814 } |
825 |
815 |
826 /* |
816 /* |