From 370b5a0fd7c1dba60e3b973506ba087adba42be0 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 18 Apr 2015 18:44:45 -0400 Subject: Add Slack and Hipchat integrations for each projects --- app/Template/project/integrations.php | 73 ++++++++++++++++++++++++++++------- 1 file changed, 58 insertions(+), 15 deletions(-) (limited to 'app/Template/project') diff --git a/app/Template/project/integrations.php b/app/Template/project/integrations.php index 4f6553ad..da27e430 100644 --- a/app/Template/project/integrations.php +++ b/app/Template/project/integrations.php @@ -2,20 +2,63 @@

-

 

-
-
-

-
+
+ formCsrf() ?> -

 

-
-
-

-
-

 

-
-
-

-
\ No newline at end of file +

 

+
+
+

+
+ + +

 

+
+
+

+
+ + +

 

+
+
+

+
+ + +

+
+ formCheckbox('hipchat', t('Send notifications to Hipchat'), 1, isset($values['hipchat']) && $values['hipchat'] == 1) ?> + + formLabel(t('API URL'), 'hipchat_api_url') ?> + formText('hipchat_api_url', $values, $errors) ?> + + formLabel(t('Room API ID or name'), 'hipchat_room_id') ?> + formText('hipchat_room_id', $values, $errors) ?> + + formLabel(t('Room notification token'), 'hipchat_room_token') ?> + formText('hipchat_room_token', $values, $errors) ?> + +

+ +
+ +
+
+ + +

 

+
+ formCheckbox('slack', t('Send notifications to a Slack channel'), 1, isset($values['slack']) && $values['slack'] == 1) ?> + + formLabel(t('Webhook URL'), 'slack_webhook_url') ?> + formText('slack_webhook_url', $values, $errors) ?> + +

+ +
+ +
+
+
\ No newline at end of file -- cgit v1.2.3